@Target(value=TYPE) @Retention(value=RUNTIME) @Documented @Component public @interface TestComponent
@Componentthat can be used when a bean is intended only for tests, and should be excluded from Spring Boot's component scanning.
Note that if you directly use
@ComponentScan rather than relying
@SpringBootApplication you should ensure that a
declared as an
public abstract String value
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.