苍穹外卖项目中遇到的问题(持续更新)

1.Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.报错解决办法

在IDEA中运行程序后,出现上面的报错。在debug框里一直往下滑,找到discription和action的指示,可以看到提示的错误其实是8080端口被占用。

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端口释放掉就可以了!具体操作办法是:

打开黑窗口(windos+r)一步一步输入下面三条指令

netstat -ano|findstr 被占用端口号   eg:netstat -ano|findstr 8080

taskkill /t /f /im 被占用端口号对应的TCP号  eg:taskkill /t /f /im “5050”

taskkill /f /t /im 对应的进程  eg:taskkill /f /t /im QQ.exe

如果显示无权释放端口的话,试一试用管理员权限打开cmd!

  • 10
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值