1 出现java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @Context问题 解决: 看看是否有启动类 看看启动类和测试类是否在同样的根目录文件夹下