Override a single @Configuration class on every spring boot @Test
问题 On my spring boot application I want to override just one of my @Configuration classes with a test configuration (in particular my @EnableAuthorizationServer @Configuration class), on all of my tests. So far after an overview of spring boot testing features and spring integration testing features no straightforward solution has surfaced: @TestConfiguration : It's for extending, not overriding; @ContextConfiguration(classes=…) and @SpringApplicationConfiguration(classes =…) lets me override