项目场景:
项目依赖的库中使用的某个@Configuration需要进行修改,因此使用@ComponentScan的exclude属性排除对应的类XxxConfig.class
问题描述:
使用@ComponentScan的exclude,配置排除XxxConfig.class,exclude未生效,Springboot仍会实例化对应的配置
@SpringBootApplication
@ComponentScan(basePackages = {
"com.xxx.staff", "com.xxxx.user", "com.xxxx"}, excludeFilters =