@BootstrapWith

@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.spring-doc.cn