问题:IDEA端口被占用,启动项目失败?
失败提示
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.]
[13:43:44.022] [ERROR] [main] [org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter] [
***************************
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 8888 or configure this application to listen on another port.
]
Process finished with exit code 1
解决:
Windos+r输入cmd,打开终端
输入命令: netstat -ano|findstr 8888
发现端口8888被14192进程占用。
输入命令:taskkill -f -pid 11164 杀死进程!!
再次启动: