大家好,又见面了,我是你们的朋友全栈君。
Suppressed: 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:76)
解决方法将test目录与java目录保持一致,编译完成之后所有类在同一文件夹,就避免了类找不到的异常
参考地址:StackOverflow
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/143934.html原文链接:https://javaforall.net