Unable to find a @SpringBootConfiguration
Posted hoge66的专栏
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Unable to find a @SpringBootConfiguration相关的知识,希望对你有一定的参考价值。
initializationError(com.example.demo.DemoApplicationTests) Time elapsed: 0.002 sec <<< ERROR! 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)
由于包名不一致造成的,删除example包,或改成对应的报名即可
以上是关于Unable to find a @SpringBootConfiguration的主要内容,如果未能解决你的问题,请参考以下文章
Unable to find a @SpringBootConfiguration
Error: Unable to find a match: lrzsz的解决方法
windows下Python扩展问题error: Unable to find vcvarsall.bat
关于Unable to find vcvarsall.bat
Android:Unable to find explicit activity class
Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest