报错信息: java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...) with your test
本文解决了一个常见的SpringBoot测试中遇到的问题,即在测试时出现的java.lang.IllegalStateException错误,详细说明了如何通过调整测试类的包路径来解决这一问题。
7333
8万+
197

被折叠的 条评论
为什么被折叠?