spring 项目---处理端口冲突命令

126 阅读1分钟

1、问题现象:


APPLICATION FAILED TO START


Description:

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

Action:

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

Disconnected from the target VM, address: '127.0.0.1:54492', transport: 'socket'

Process finished with exit code 1

2、解决方法(windows)

打开脚本运行界面:

image.png

输入cmd 弹出执行页面:

image.png

输入netstat -ano|findstr 8522

image.png

其中最右边的是tcp,41792.执行停止命令:taskkill /f /t /im 41792

image.png