1.太久没使用springbotTest,引发错误;Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...) with your test
2.从错误信息指出:使用@springbootTest注解进行测试,没有找到启动类的配置;
在修改该为:@springbootTest(class = 启动类.class);指定具体启动类即可;
例子:修改前
修改后,添加自己启动类
我的启动类名称
3. 参考连接