提交 fca01b54 编写于 作者: zhouweidong's avatar zhouweidong

解决REST扩展,包重复扫描问题

上级 48bb0af3
......@@ -26,7 +26,7 @@ import java.util.List;
@Configuration
@EnableFeignClients(basePackages = {"${pub.getPKGCodeName()}" })
@EnableZuulProxy
@ComponentScan(basePackages = {"${pub.getPKGCodeName()}"})
@ComponentScan(basePackages = {"${pub.getPKGCodeName()}.${app.getPKGCodeName()?lower_case}","${pub.getPKGCodeName()}.util"})
@MapperScan("${pub.getPKGCodeName()}.*.mapper")
@SpringBootApplication(exclude = {
org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class,
......
......@@ -22,7 +22,11 @@ import java.util.List;
@EnableDiscoveryClient
@Configuration
@EnableTransactionManagement
@ComponentScan(basePackages = {"${pub.getPKGCodeName()}"})
@ComponentScan(basePackages = {"${pub.getPKGCodeName()}"}
// ,excludeFilters={
// @ComponentScan.Filter(type= FilterType.REGEX,pattern="${pub.getPKGCodeName()}.${item.codeName?lower_case}.extensions.rest.xxx"),
// }
)
@EnableMongoRepositories(basePackages = {"${pub.getPKGCodeName()}"})
@MapperScan("${pub.getPKGCodeName()}.*.mapper")
@SpringBootApplication(exclude = {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册