Spring Boot 启动错误:To display the conditions report re-run your application with ‘debug‘ enable —【已解决】

简介: Spring Boot 启动错误:To display the conditions report re-run your application with ‘debug‘ enable —【已解决】

对于初学SpringBoot、 maven ,或者入门不久的攻城狮们,这种框架的问题,粘贴到 baidu google 是最快的解决办法


针对上面的问题,相信你已经修改了自己的 application.yml

  1. mvn clean compile 重新编译

换不行??

  1. 重载maven缓存

重新导入依赖的常见方式

  下面图中的刷新按钮,在我的机器上,并不能每次都正确导入pom.xml中写的依赖项,而是导入之前pom.xml的依赖(读了缓存中的pom.xml)。

  


存在的问题

  上面虽然是重新导入Maven依赖,按理说,IDEA应该根据当前最新的pom.xml来导入依赖;

reimport操作常常不能导入当前最新的pom.xml中规定的依赖,因为有一种东西叫“缓存”,IDEA在每次打开项目的时候,就会产生缓存(为了提升运行速度和效率),但是此时,却很头疼。


虽然有时候重启IDEA能够解决缓存问题,只能说是有时候,并不能总是成功,下面介绍一种清空整个IDEA缓存的方式。

彻底清除缓存的方式

  选择下面的Invalidate and Restart即可清空IDEA的缓存,并且重启;注意,下一次重启后,需要比较长的时间来重新构建索引,所以可以找一个空闲时间进行。

目录
相关文章
|
12月前
|
网络协议 Java Shell
java spring 项目若依框架启动失败,启动不了服务提示端口8080占用escription: Web server failed to start. Port 8080 was already in use. Action: Identify and stop the process that’s listening on port 8080 or configure this application to listen on another port-优雅草卓伊凡解决方案
java spring 项目若依框架启动失败,启动不了服务提示端口8080占用escription: Web server failed to start. Port 8080 was already in use. Action: Identify and stop the process that’s listening on port 8080 or configure this application to listen on another port-优雅草卓伊凡解决方案
815 7
|
前端开发 Java BI
Spring3 Web MVC 集成Jasper Report生成PDF例子
Spring3 Web MVC 集成Jasper Report生成PDF例子
241 7
|
Java Spring
idea Spring-boot 项目debug启动过慢 spring debug启动过慢解决办法:已解决
idea Spring-boot 项目debug启动过慢 spring debug启动过慢解决办法:已解决
1427 3
|
Java Spring
Spring Boot Application in default package
Spring Boot Application in default package
|
Java
springboot启动报错:“Error starting ApplicationContext. To display the conditions report re-run your appl
springboot启动报错:“Error starting ApplicationContext. To display the conditions report re-run your appl
2924 0
|
Java 数据库连接 Spring
【SpringBoot】Error starting ApplicationContext. To display the conditions report re--run your app
【SpringBoot】Error starting ApplicationContext. To display the conditions report re--run your app
471 0
|
4月前
|
JavaScript Java 关系型数据库
基于springboot的项目管理系统
本文探讨项目管理系统在现代企业中的应用与实现,分析其研究背景、意义及现状,阐述基于SSM、Java、MySQL和Vue等技术构建系统的关键方法,展现其在提升管理效率、协同水平与风险管控方面的价值。
|
4月前
|
搜索推荐 JavaScript Java
基于springboot的儿童家长教育能力提升学习系统
本系统聚焦儿童家长教育能力提升,针对家庭教育中理念混乱、时间不足、个性化服务缺失等问题,构建科学、系统、个性化的在线学习平台。融合Spring Boot、Vue等先进技术,整合优质教育资源,提供高效便捷的学习路径,助力家长掌握科学育儿方法,促进儿童全面健康发展,推动家庭和谐与社会进步。
|
4月前
|
JavaScript Java 关系型数据库
基于springboot的古树名木保护管理系统
本研究针对古树保护面临的严峻挑战,构建基于Java、Vue、MySQL与Spring Boot技术的信息化管理系统,实现古树资源的动态监测、数据管理与科学保护,推动生态、文化与经济可持续发展。

热门文章

最新文章