Spring Boot项目端口8080被占用,如何巧妙解决这个棘手问题?
- 内容介绍
- 文章标签
- 相关推荐
本文共计570个文字,预计阅读时间需要3分钟。
错误提示:2018-11-12 21:25:58.422 ERROR 15916 [restartedMain] o.s.b.d.LoggingFailureAnalysisReporter : 应用程序启动失败。描述:配置监听端口8080的Tomcat连接器启动失败。该端口可能已被占用。
错误提示:
2018-11-12 21:25:58.422 ERROR 15916 — [ restartedMain] 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.
Action:
Verify the connector's configuration, identify and stop any process that's listening on port 8080, or configure this application to listen on another port.
可能的原因:
- 电脑中其他进程占用8080端口;
- 其他Spring Boot项目占用8080端口;
- 自己要运行的项目重复生成占用了端口。
本文共计570个文字,预计阅读时间需要3分钟。
错误提示:2018-11-12 21:25:58.422 ERROR 15916 [restartedMain] o.s.b.d.LoggingFailureAnalysisReporter : 应用程序启动失败。描述:配置监听端口8080的Tomcat连接器启动失败。该端口可能已被占用。
错误提示:
2018-11-12 21:25:58.422 ERROR 15916 — [ restartedMain] 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.
Action:
Verify the connector's configuration, identify and stop any process that's listening on port 8080, or configure this application to listen on another port.
可能的原因:
- 电脑中其他进程占用8080端口;
- 其他Spring Boot项目占用8080端口;
- 自己要运行的项目重复生成占用了端口。

