springboot2.2之后引入的测试默认都是junit5
org.springframework.boot spring-boot-starter-testtest
以前@SpringBootTest+@RunWith(xxx.class)
现在只需要@SpringBootTest
springboot2.4以上移除了vintage,如果需要兼容junit4需要自行引入。

springboot2.2之后引入的测试默认都是junit5
org.springframework.boot spring-boot-starter-testtest
以前@SpringBootTest+@RunWith(xxx.class)
现在只需要@SpringBootTest
springboot2.4以上移除了vintage,如果需要兼容junit4需要自行引入。