记录使用SpringBoot测试类时遇到的两个问题

1.java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=…) with your test 异常信息 问题出现的原因有两个 1.需要将测试类所在的包名,改成与其他分支的包
相关文章
相关标签/搜索