springboot测试启动报错java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...) with your test
springboot测试启动报错:
java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...) with your test
![](https://img2018.cnblogs.com/i-beta/1797831/201912/1797831-20191205142233583-513814704.png)
![](https://img2018.cnblogs.com/i-beta/1797831/201912/1797831-20191205142410798-2033519816.png)
解决:注意springboot启动类Application要和测试类在同一级包下
记录就完事了