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