开发中遇到下面这种情况,说明端口已被占用,可以使用window命令行接触端口占用问题;
***************************
APPLICATION FAILED TO START
***************************
Description:
The Tomcat connector configured to listen on port 8080 failed to start. The port may already be in use or the connector may be misconfigured.
Action:
Verify the connector's configuration, identify and stop any process that's listening on port 8080, or configure this application to listen on another port.
1、Win+R->cmd
2、检查该端口是否被占用
C:\Users\Administrator>netstat -aon|findstr "8002"
3、端口进程运行的程序
C:\Users\Administrator>tasklist|findstr 7728
4、杀死进程
C:\Users\Administrator>taskkill /f /t /im java.exe