您的位置:首页 > 编程语言 > Java开发

Unable to find a @SpringBootConfiguration

2017-08-30 13:51 543 查看
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包,或改成对应的报名即可
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐