@BootstrapWith
@BootstrapWith
是一个可以应用于测试类的注解,用于配置 Spring TestContext 框架的启动方式。
具体来说,您可以使用 @BootstrapWith
指定一个自定义的 TestContextBootstrapper
。
有关详细信息,请参阅 启动 TestContext 框架 一节。
@BootstrapWith
@BootstrapWith
是一个可以应用于测试类的注解,用于配置 Spring TestContext 框架的启动方式。
具体来说,您可以使用 @BootstrapWith
指定一个自定义的 TestContextBootstrapper
。
有关详细信息,请参阅 启动 TestContext 框架 一节。