注释类型 TestConfiguration
@Target(TYPE) @Retention(RUNTIME) @Documented @Configuration @TestComponent public @interface TestConfiguration
@Configuration
that can be used to define additional beans or customizations for a test. Unlike regular@Configuration
classes the use of@TestConfiguration
does not prevent auto-detection of@SpringBootConfiguration
.- 从以下版本开始:
- 1.4.0
- 另请参阅:
SpringBootTestContextBootstrapper