1、问题描述
2、解决方案
在接口上加入两个就好(只要这两个)
@RunWith(SpringRunner.class)
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT,classes = Application.class)
springboot-junit4: java.lang.IllegalStateException:Failed toload ApplicationContext
最新推荐文章于 2023-10-16 17:04:39 发布