springboot項目啟動控制台顯示端口被占用解決方法


控制台啟動報錯:

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2020-04-24 16:39:29.231 ERROR 2864 --- [ restartedMain] o.s.b.d.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 8080 or configure this application to listen on another port.

,顯示端口8080被占用

 

 第一種解決方法,win+r 打開cmd ,輸入命令 netstat -aon 查看進程,找到8080,

或者輸入指定8080的命令:netstat -aon|findstr "8080"

 

 

 

 輸入命令格式:taskkill /t /f /pid 進程id,殺掉8080進程,比如:taskkill /t /f /pid 6736

 

第二種方法:修改配置文件端口,比如改為8081,8082

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM