-
Notifications
You must be signed in to change notification settings - Fork 38.6k
Closed
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)theme: aotAn issue related to Ahead-of-time processingAn issue related to Ahead-of-time processingtype: documentationA documentation taskA documentation task
Milestone
Description
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.
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)theme: aotAn issue related to Ahead-of-time processingAn issue related to Ahead-of-time processingtype: documentationA documentation taskA documentation task