注释类型 BootstrapWith
@Target(TYPE) @Retention(RUNTIME) @Documented @Inherited public @interface BootstrapWith
@BootstrapWith
defines class-level metadata that is used to determine how to bootstrap the Spring TestContext Framework.This annotation may also be used as a meta-annotation to create custom composed annotations.
- 从以下版本开始:
- 4.1
- 作者:
- Sam Brannen
- 另请参阅:
BootstrapContext
,TestContextBootstrapper
可选元素概要
可选元素 修饰符和类型 可选元素 说明 Class<? extends TestContextBootstrapper>
value
TheTestContextBootstrapper
to use to bootstrap the Spring TestContext Framework.
元素详细资料
value
Class<? extends TestContextBootstrapper> value
TheTestContextBootstrapper
to use to bootstrap the Spring TestContext Framework.- 默认值:
- org.springframework.test.context.TestContextBootstrapper.class