启动springboot时报Caused by: java.net.BindException: Address already in use: bind
Description:
Web server failed to start. Port 20005 was already in use.
Action:
Identify and stop the process that's listening on port 20005 or configure this application to listen on another port.
打开cmd命令窗口
C:\Users\Administrator>netstat -ano|findstr 20005
TCP 0.0.0.0:20005 0.0.0.0:0 LISTENING 9348
TCP [::]:20005 [::]:0 LISTENING 9348
C:\Users\Administrator>taskkill /pid 9348/f
错误: 没有找到进程 "9348/f"。
C:\Users\Administrator>taskkill /pid 9348 /f
成功: 已终止 PID 为 9348 的进程。
20005端口即被占用的端口。