欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

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.

异常的截图:

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

异常指出我的config不存在

然后我就看了一下我的config 还真的不存在

Error starting ApplicationContext. To display the conditions report re-run your application with ‘de

解决方法一:

IDEA右侧的maven打开 选中项目下的lifecyle 双击然后点击clean进行重启

Error starting ApplicationContext. To display the conditions report re-run your application with ‘de

解决方法二:

这个方法比较特殊 因为我的maven有两个 造成了冲突 用了clean还是不行 这时候 就需要打开命令行了 先window+R 输入cmd

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

接着输入命令:

mvn -clean

如果跳出这个页面 就是重启成功啦

Error starting ApplicationContext. To display the conditions report re-run your application with ‘de

然后在输入

mvn -install

Error starting ApplicationContext. To display the conditions report re-run your application with ‘de

最后在打开IDEA 查看config是否存在

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

相关标签: java