springboot启动类剔除扫描某个包

// 排除api中不引数据库导致的报错包
@ComponentScan(excludeFilters =
{
@ComponentScan.Filter(type = FilterType.REGEX,pattern = "com.integration.aop.log.service.*")
})
posted @ 2023-02-27 09:20  Aoul  阅读(496)  评论(0编辑  收藏  举报