@ComponentScan(basePackages={"com.xx.common.core.config.mq"})
public class ProductApplication {
public static void main(String[] args) {
SpringApplication.run(ProductApplication.class, args);
}
}
在Application上增加 @ComponentScan(basePackages={"com.xx.common.core.config.mq"})
即可访问lib中@Configuration