I need to exclude multiple patterns of packages from:
@ComponentScan(
basePackages = "com.data",
excludeFilters = @ComponentScan.Filter(
type = FilterType.REGEX,
pattern = "package.*"
)
)
I am using spring boot LATEST.
excludeFilters
takes an array
@ComponentScan(
basePackages = "com.example",
excludeFilters = {
@ComponentScan.Filter(...),
@ComponentScan.Filter(...),
@ComponentScan.Filter(...),
}
)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With