java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=…) with your test
Springboot在启动加载测试类报异常.IllegalStateException,Unable to find a @SpringBootConfiguration
异常信息:java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=…) with your test原因及其解决办法1、原因:自己的测试类和主启动类不在一个包名下;2、解决:把自己的测试类和程序的主启动类放在同一个包名下,就OK...