栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

启动简单的springboot项目报错:To display the conditions report re-run your..Web server failed to start...

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

启动简单的springboot项目报错:To display the conditions report re-run your..Web server failed to start...

启动一个简单的springboot项目报错:

一、错误原因
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.

此行意思是,启动项目时出错,如果想要详细报告,需调试(debug)程序。

description才是详细内容:

Web server failed to start. Port 8080 was already in use.

意思是:Web服务器启动失败,端口8080已被占用。

二、解决方案

下面也给出了具体的解决方案:

	Action:
	Identify and stop the process that's listening on port 8080 or configure this application to listen on another port.

即有两种解决方案:
一是更改此项目的端口号


1.找到配置文件,若之前配置过,则直接修改port即可,若空白无任何配置,则输入server.port=XXX

XXX是自定义的端口号,端口号默认为8080,此处可以自行修改。(我改成了8888

2.重新启动项目

项目启动成功,且端口号变为8888

二是关闭占用端口的程序
找到端口号对应的程序 关闭该程序
参考文章:
https://blog.csdn.net/zhouky1993/article/details/103976320

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/762696.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号