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

@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT, classes = {PropertyDefine.class})

@SpringBootApplication
@EnableAutoConfiguration

 

https://stackoverflow.com/questions/21783391/spring-boot-unable-to-start-embeddedwebapplicationcontext-due-to-missing-embedd

posted @ 2018-03-27 16:00  niaomingjian  阅读(4431)  评论(0编辑  收藏  举报