@BootstrapWith
@BootstrapWith
是一个可以应用于测试类以配置 Spring TestContext 框架如何进行引导的注释。具体来说,您可以使用 @BootstrapWith
指定一个自定义的 TestContextBootstrapper
。有关进一步的详细信息,请参见 bootstrapping the TestContext framework 部分。
@BootstrapWith
is an annotation that can be applied to a test class to configure how
the Spring TestContext Framework is bootstrapped. Specifically, you can use
@BootstrapWith
to specify a custom TestContextBootstrapper
. See the section on
bootstrapping the TestContext framework for further details.