解决错误 java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @Co

报错

java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...) with your test
......
......
......
......
......
......
......

 

我当时运行SpringBoot测试类的时候踩这个坑,当时的解决办法就是,原本的包名为test现在改为panfeng就行了.

解决错误 java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @Co

 

上一篇:Android Studio安装Unable to access Android SDK add-on list处理方法


下一篇:Unable to load authentication plugin 'caching_sha2_password'