使用@Configuration是否会阻止@SpringBootConfiguration的自动检测?

Par*_*olu 5 spring spring-annotations spring-boot spring-boot-test spring-autoconfiguration

我已经搜索了使用@TestConfiguration与@Configuration相比的真正含义,并且我在@TestConfiguration的官方评论中看到了一个声明。

...与常规@Configuration类不同,@TestConfiguration的使用不会阻止@SpringBootConfiguration的自动检测。

该声明的含义是,使用 @Configuration 可以防止自动检测 @SpringBootConfiguration,但 @TestConfiguration 不会。

我对“预防”这个词感到困惑。@Configuration的使用会影响@SpringBootConfiguration吗?