Merge pull request #12216 from azhwani/BAEL-5448
BAEL-5448: Improvement: Scan Multiple Paths using the @ComponentScan Annotation
This commit is contained in:
commit
43a6d1e3fd
|
@ -13,6 +13,10 @@ import org.springframework.context.annotation.Configuration;
|
|||
// @ComponentScan(excludeFilters = @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, value = Rose.class))
|
||||
// @ComponentScan(basePackages = "com.baeldung.componentscan.springapp")
|
||||
// @ComponentScan(basePackages = "com.baeldung.componentscan.springapp.animals")
|
||||
// @ComponentScan(basePackages = {"com.baeldung.componentscan.springapp.animals","com.baeldung.componentscan.springapp.flowers"})
|
||||
// @ComponentScan(basePackages = "com.baeldung.componentscan.springapp.animals;com.baeldung.componentscan.springapp.flowers")
|
||||
// @ComponentScan(basePackages = "com.baeldung.componentscan.springapp.animals,com.baeldung.componentscan.springapp.flowers")
|
||||
// @ComponentScan(basePackages = "com.baeldung.componentscan.springapp.animals com.baeldung.componentscan.springapp.flowers")
|
||||
// @ComponentScan (excludeFilters = @ComponentScan.Filter(type=FilterType.REGEX,pattern="com\\.baeldung\\.componentscan\\.springapp\\.flowers\\..*"))
|
||||
public class SpringComponentScanApp {
|
||||
|
||||
|
|
Loading…
Reference in New Issue