Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest( 测试类启动报错,修改测试类包名与Application类一致,问题解决。