remove sys and added test cases (#7894)

* BAEL-3286 added component scan filter example

* Remove unused class

* Corrected formatting

* formatted code

* Update code

* added test cases

* Fix tests name
This commit is contained in:
Devender Kumar
2019-09-29 17:38:58 +02:00
committed by maibin
parent b86270a6aa
commit 56cae916aa
29 changed files with 210 additions and 79 deletions

View File

@@ -10,10 +10,10 @@ import org.springframework.context.annotation.Configuration;
@Configuration
@ComponentScan
//@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 (excludeFilters = @ComponentScan.Filter(type=FilterType.REGEX,pattern="com\\.baeldung\\.componentscan\\.springapp\\.flowers\\..*"))
// @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 (excludeFilters = @ComponentScan.Filter(type=FilterType.REGEX,pattern="com\\.baeldung\\.componentscan\\.springapp\\.flowers\\..*"))
public class SpringComponentScanApp {
private static ApplicationContext applicationContext;