报错:Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=…) with your test
解决方案
将@SpringbootTest注解修改为
@SpringBootTest(classes = 自己的启动类.class)
同时附上别的博客的解决方案
地址:
https://blog.csdn.net/csdn_am/article/details/79757097