@Target(value=TYPE) @Retention(value=RUNTIME) @Documented @Component public @interface 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
.
TypeExcludeFilter
,
TestConfiguration
public abstract String value
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.