Error starting ApplicationContext. To display the conditions report re-run your application with ‘de
程序员文章站
2022-05-03 15:52:59
...
启动spring时报出:Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
异常的截图:
一般遇到这种情况 它的下面还会有比较详细的信息
异常指出我的config不存在
然后我就看了一下我的config 还真的不存在
解决方法一:
IDEA右侧的maven打开 选中项目下的lifecyle 双击然后点击clean进行重启
解决方法二:
这个方法比较特殊 因为我的maven有两个 造成了冲突 用了clean还是不行 这时候 就需要打开命令行了 先window+R 输入cmd
输入命令打开你的项目所在位置
接着输入命令:
mvn -clean
如果跳出这个页面 就是重启成功啦
然后在输入
mvn -install
最后在打开IDEA 查看config是否存在
启动一下 成功!
推荐阅读
-
SpringBoot报错:Error starting ApplicationContext. To display the conditions report...........
-
springboot错误:Error starting ApplicationContext. To display the conditions report re-run your applica
-
ApplicationContext.To display the conditions report re-run your application with ‘debug‘ enabled
-
springboot启动报错,Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
-
Error starting ApplicationContext. To display the conditions report re-run your application with 'de
-
Error starting ApplicationContext. To display the conditions report re-run your application with 'de
-
Error starting ApplicationContext. To display the conditions report re-run your application with 'de
-
Error starting ApplicationContext. To display the conditions report re-run your application with ‘de
-
Error starting ApplicationContext. To display the conditions report re-run your application with 'de
-
ApplicationContext.To display the conditions report re-run your application with ‘debug‘ enabled