multiple @ComponentScan in Spring 4?
I am using Spring 4.16 with Java Annotations, and i want to do something like: @Configuration @ComponentScan(basePackages = "com.example.business", includeFilters = @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, value = ServiceComponent.class)) @ComponentScan(basePackages = "com.example.business.framework") public class ServicesBaseConfiguration { } Obviusly, it doesn't compile. But i hope you get my point. I want to have multiple ComponentScans with differents packages and filters. I cannot unify both ComponentsScan because it wouldn't create any component from framework but those