Action: Identify and stop the process that‘s listening on port 8080 or configure this application t

当启动SpringBoot应用时遇到'Webserver failed to start. Port 8080 was already in use.'的错误,这是因为8080端口已被其他进程占用。解决方案包括:停止占用8080端口的应用或者修改SpringBoot的配置文件application.properties,将server.port设置为其他未使用的端口,如8081,以避免端口冲突。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在启动springboot项目时,发现错误
Description:
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.
意思是8080端口号已经被占用。
解决办法有:
一、停止另外一个在运行的项目,重新启动项目,启动成功。
二、在配置文件中修改端口号,只要不是8080就可以。

三、配置方法

在application.properlication里

server.port=8081

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值