TestComponent
annotation class TestComponent
@Component that 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 on @SpringBootApplication
you should ensure that a TypeExcludeFilter is declared as an excludeFilter.
Author
Phillip Webb
Since
1.4.0