出现以下错误
Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=…) with your test
原因是包路径对,要测试路径和src目录一样
测试类出现错误Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration
最新推荐文章于 2024-07-29 10:19:21 发布