Skip to content

When a bean definition is overridden, detect whether the definition has changed and log accordingly [SPR-7607] #12263

@spring-projects-issues

Description

@spring-projects-issues

Dale Wyttenbach opened SPR-7607 and commented

In a large configuration the 'Overriding bean definition' log message may be generated hundreds of times.
These messages are all generated with log level INFO from DefaultListableBeanFactory.
When you have a lot of these messages, deciding which of them require your attention can be quite a chore.
It would be helpful if beanDefinition.equals(oldBeanDefinition) were checked, and in the case where they are not equal, a different, more insistent WARN-level log message were generated.


Affects: 3.0.4

Attachments:

Issue Links:

Referenced from: commits e7dde74

2 votes, 6 watchers

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions