我需要从以下位置排除多种模式:
@ComponentScan(
basePackages = "com.data",
excludeFilters = @ComponentScan.Filter(
type = FilterType.REGEX,
pattern = "package.*"
)
)
我正在使用弹簧靴LATEST。
答案 0 :(得分:3)
excludeFilters
采用数组
@ComponentScan(
basePackages = "com.example",
excludeFilters = {
@ComponentScan.Filter(...),
@ComponentScan.Filter(...),
@ComponentScan.Filter(...),
}
)