@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
@AliasFor(annotation=org.springframework.stereotype.Component.class) public abstract String value
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.