记录在学习SpringBoot过程中, 遇到了各种问题..
错误过程信息:
省略10000字
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2018-06-26 20:48:01.000 ERROR 15332 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
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.
原因:
8080端口被占用了.... 一脸懵逼? 没启动怎么被占用了...
解决一(推荐):
1. 调出命令终端
win+r 并且输入cmd
2. 查看某个端口(8080)的被占用情况
netstat -ano |findstr 8080
3. 根据进程号(24068)关闭进程即可
taskkill -PID 24068 -F
解决二:
1.打开cmd命令窗口 输入如下指令查看所有端口和PID
netstat -ano
2.找到对应的端口对应的PID 输入指令找到对应的进程
tasklist | findstr "7676"
3.杀掉该进程 再次启动就OK啦
taskkill /f /t /im java.exe