测试时java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use
java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=…) with your test
原因是springboot启动类没找到,你需要把启动类在根目录下,不能放到其他包中...
原创
2019-06-16 10:28:28 ·
165 阅读 ·
0 评论