David Lopez opened SPR-15805 and commented
When you define a bean in a XML, you cannot redefine it in a @Component or @TestComponent class using a @Bean declaration). It can, however, be redefined using another XML.
I have defined this as a Improvement since I do not think it explicitly violates anything .. simply it is a grey zone in the DI part fo Spring, but anyway, I consider this behaviour inconsistent and weird.
This issue is similar to #14201, but to the case when
Affects: 4.3.9, 5.0 RC2
Attachments:
Issue Links:
1 votes, 1 watchers
David Lopez opened SPR-15805 and commented
When you define a bean in a XML, you cannot redefine it in a
@Componentor@TestComponentclass using a@Beandeclaration). It can, however, be redefined using another XML.I have defined this as a Improvement since I do not think it explicitly violates anything .. simply it is a grey zone in the DI part fo Spring, but anyway, I consider this behaviour inconsistent and weird.
This issue is similar to #14201, but to the case when
Affects: 4.3.9, 5.0 RC2
Attachments:
Issue Links:
@ComponentScanare skipped in@Configurationoverride1 votes, 1 watchers