java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=…) with your test
@RunWith(SpringRunner.class)
@SpringBootTest
测试文件的包名称必须和springboot启动类的包名称一样或者属Springboot启动类的子包
For example:
比如启动类Application.java的位置在com.java.Application下
那么test类如MyTest.java的文件必须在 com.java.MyTest(同级目录)或者 com.java.test.MyTest(子包)包目录下