Application failed to start due to an exception org.springframework.boot.web.embedded.tomcat.Connec

时间:2024-03-15 11:40:16

Application failed to start due to an exception

org.springframework.boot.web.embedded.tomcat.ConnectorStartFailedException: Connector configured to listen on port 80 failed to start

Application failed to start due to an exception org.springframework.boot.web.embedded.tomcat.Connec
原因:80端口被占。
解决:结束掉占用端口的程序

1.打开cmd 在CMD中输入命令:netstat -ano(注:以管理员的身份打开cmd)

2.在cmd中找到你启动的端口号,并记住端口号后面的PID
在这里插入图片描述
Application failed to start due to an exception org.springframework.boot.web.embedded.tomcat.Connec
3.照样以管理员身份打开cmd,CMD中输入命令:taskkill /f /t /im 【PID】

在这里插入图片描述
Application failed to start due to an exception org.springframework.boot.web.embedded.tomcat.Connec