java.lang.IllegalStateException Unable to find a @SpringBootConfiguration代码报错
一. 问题场景使用idea基于springBoot的项目进行单元测试时,出现异常,如下所示:Test ignored. java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classe....
java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration
springboot单元测试时报错:java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=…) with your test解决办法: 测试类要和SpringBoot的主....
本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。
Java开发者
Java开发者成长课堂,课程资料学习,实战案例解析,Java工程师必备词汇等你来~
+关注