java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=…) with your test 错误场景:在使用mybatisplus做测试时,出现此错误 解决方案:SpringBoot下的测试类应该与SpringBoot的启动类的包路径一致