报错信息
java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...) with your test
报错原因
原因是在测试的时候找不到SpringBoot启动类所以才报错的。
java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...) with your test
原因是在测试的时候找不到SpringBoot启动类所以才报错的。