Sprintboot的一个测试用例
最近做测试代码,编译总是不通过报出下面的错误
java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...) with your test
at org.springframework.util.Assert.state(Assert.java:70)
at org.
原创
2020-06-23 17:40:34 ·
425 阅读 ·
0 评论