***************************
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 1
1.Java项目启动时发现端口被占用时,需要杀进程
打开cmd输入netstat -ano | findstr xxx 占用该端口的进程的PID
2.根据PID获取进程名
tasklist | findstr 5800
3、根据进程名称关闭进程
taskkill -f -t -im java.exe
4.结束