Document that circular dependencies should be avoided in AOT mode #33786
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
theme: aot
An issue related to Ahead-of-time processing
type: documentation
A documentation task
Milestone
Add a new subsection to the Best Practices section to explain that circular dependencies should be avoided for AOT-proccessed Spring applications.
Specifically, circular dependencies that work in standard JVM mode (such as
@Autowired
fields and methods) do not work in AOT mode unless a@Lazy
resolution proxy is used.See MockitoSpyBeanAndCircularDependenciesWithLazyResolutionProxyIntegrationTests for an example.
The text was updated successfully, but these errors were encountered: