【SpringBoot】Web server failed to start. Port 8080 was already in use.

问题描述

SpringBoot启动Web服务器失败。

***************************
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.

原因分析

8080端口被占用。查询到居然是QQ占用8080端口。


解决方案

打开cmd。

netstat -ano|findstr 8080

  TCP    192.168.1.29:7180      119.147.190.138:8080   ESTABLISHED     17612
tasklist |findstr 17612

QQ.exe                       17612 Console                    1    203,024 K
taskkill /pid 17612 /f

成功: 已终止 PID 为 17612 的进程。

你可能感兴趣的:(SpringBoot,spring,boot,java)