0%

SpringBoot项目运行显示端口占用问题

记录一个怪问题

报错信息

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
***************************
APPLICATION FAILED TO START
***************************

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.


Process finished with exit code 0

查询端口信息:

1
2
netstat -ano | findstr :8080
TCP 10.149.0.108:5640 49.7.253.65:8080 ESTABLISHED 27564

杀死端口:

1
taskkill /pid 27564 /f

但杀死的端口时qq的,8080端口没有占用后,程序还是报同样的错误

配置文件中换成8081端口后,不报错,但关闭IDEA,又打开后,运行程序显示8081端口被占用。

没找到解决办法,最后重启解决。。。