springboot报错:To display the auto-configuration reportre-run your application with ‘debug‘ enable

当启动spring boot项目的时候,显示错误:

Error starting ApplicationContext. To display the auto-configuration reportre-run your application with 'debug' enabled

哎~发生的原因是因为想弄一个热部署 DevTools , 在maven的pom文件中引入了一个jar包,后来又删除了,然后再启动项目就发现报错了!

解决办法:

1:找到这个jar包所在maven的资源库文件 “resources ” 定位到jar包所在最小文件,直接删除!然后项目中刷新maven,即可完美解决!

2:新建一个maven本地仓库文件夹,在settings.xml文件里面把本地仓库的换成新建文件夹的地址。然后更新spring boot项目,启动spring boot项目试试。

----------------------------------------------------------------------------------------------------------------------------

同一个BUG对不同人可能是由于不同原因产生的,我是用这种办法完美解决了,如果您是用别的办法解决的方便的话请在评论区留言,为码友们提供一些新的思路~

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
回答: 当启动Spring Boot项目时,如果出现错误信息"Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled",这意味着应用程序启动失败,并且建议重新以调试模式运行应用程序以显示自动配置报告。\[1\]\[2\]\[3\]这个错误通常是由于应用程序缺少某个类型的bean而导致的。在这种情况下,建议在配置文件中定义一个类型为'com.demo.springcloud.service.DeptService'的bean。 #### 引用[.reference_title] - *1* [springboot报错:To display the auto-configuration reportre-run your application with ‘debugenable](https://blog.csdn.net/qq_43143025/article/details/124130854)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* [启动springboot项目报错To display the auto-configuration report re-run your application with 'debug' ...](https://blog.csdn.net/mu18740/article/details/101150351)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] - *3* [SpringBoot报错“To display the auto-configuration report re-run your application with ‘debug‘ ...](https://blog.csdn.net/cnds123321/article/details/117874345)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值