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包,或改为对应的报名便可java

相关文章
相关标签/搜索