摘要: @MapperScan(basePackages = {"com.cnmyhr.ecch.contract.mapper","com.cnmyhr.ecch.event.core.mapper"}) 》 @Import({MapperScannerRegistrar.class})》 public 阅读全文
posted @ 2024-10-12 11:13 人在代码在 阅读(26) 评论(0) 推荐(0)
摘要: 我们讲过如果一个类实现了ImportSelector接口,并且在配置类中被@Import加入到Spring容器中以后。 Spring容器就会把ImportSelector接口方法返回的字符串数组中的类new出来对象然后放到工厂中去。 @SpringBootApplication》 @EnableAu 阅读全文
posted @ 2024-10-12 10:08 人在代码在 阅读(33) 评论(0) 推荐(0)