Make it possible to determine if circular references are prohibited or if the cycle just couldn't be broken #27289
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Affects: 5.3
In Spring Boot 2.6, we intend to prohibit circular references by default with a configuration property and Java API to turn it back on again. As part of this, I'd like to update our
BeanCurrentlyInCreationFailureAnalyzer
to suggest that, as a last resort, circular references could be turned back on again to possibly break the cycle. I'd like to only suggest this ifAbstractAutowireCapableBeanFactory.allowCircularReferences
isfalse
. Unfortunately, without resorting to reflection, I can't get the flag's value. Could an accessor please be added?The text was updated successfully, but these errors were encountered: