mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 20:19:06 +00:00
Previously, AOT processing failed on processing an immutable configuration properties that declare several constructors as the core framework infrastructure tries to resolve the "autowired" constructor to use, even if the custom code fragments are never going to use it. This commit workarounds the problem in maintenance releases until a proper fix is provided in the core framework. When AOT runs, a SmartInstantiationAwareBeanPostProcessor is added to the bean factory to provide the constructor to use. This implementation relies on the same algorithm that the binder uses at runtime. Closes gh-37283