https://github.com/spring-projects/spring-framework/wiki/Spring-Framework-6.2-Release-Notes#core-container
This is due to stricter container rules. Can't mix things like @ConditionalOnBean with @ComponentScan.
@ConditionalOnBean
@ComponentScan