注释类型 TypeExcludeFilters
@Target(TYPE) @Retention(RUNTIME) @Documented public @interface TypeExcludeFilters
Annotation that can be on tests to define a set ofTypeExcludeFilter
classes that should be applied to@SpringBootApplication
component scanning.- 从以下版本开始:
- 1.4.0
- 另请参阅:
TypeExcludeFilter
元素详细资料
value
Class<? extends org.springframework.boot.context.TypeExcludeFilter>[] value
SpecifiesTypeExcludeFilter
classes that should be applied to@SpringBootApplication
component scanning. Classes specified here can either have a no-arg constructor or accept a singleClass<?>
argument if they need access to thetestClass
.- 返回:
- the type exclude filters to apply
- 另请参阅:
TypeExcludeFilter