Raise log level to warn when configuration class enhancement cannot apply due to circular reference #31102
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Our existing log message for a circular reference to the configuration class is not ideally worded since it suggests that the configuration class cannot be enhanced whereas it actually can be enhanced but effectively won't use the enhanced class. Also, it suggests declaring the affected
@Bean
method asstatic
but could also mention that the configuration class should be declared asproxyBeanMethods=false
if enhancement is not needed anyway.Most importantly, that log message can easily be missed at info level, so we should raise it to warn level.
Related PRs: #22992, #24356.
The text was updated successfully, but these errors were encountered: