【问题标题】:Tomcat on port 8080 failed using Spring boot Java使用 Spring Boot Java 端口 8080 上的 Tomcat 失败
【发布时间】:2021-01-04 10:07:13
【问题描述】:

我是弹簧靴的初学者。当我运行 Spring Boot 应用程序时,我遇到了配置为侦听端口 8080 的 Tomcat 连接器无法启动的问题。春季开机

我不知道如何解决问题。我在运行mysql时安装了mysql,它的端口也是8080。所以如何解决这个问题。

***************************
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.

【问题讨论】:

标签: spring spring-boot


【解决方案1】:

您的 8080 端口已被其他进程使用。

application.properties中更改spring-boot server.port=8090的端口。

如果该端口号不属于您计算机上的任何其他进程,您可以将应用程序运行服务器端口更改为任何端口号。

另外一件事,如果你使用 IntelliJ idea 开发,不小心关闭了你的 IDE,没有正确的方法可能会出现这个错误{个人经验}。

【讨论】:

    【解决方案2】:

    似乎 8080 端口已被其他进程使用。

    通过在application.properties中添加server.port=8090来更改spring-boot tomcat的端口。

    将 8090 更改为您要使用的任何端口。

    【讨论】:

    • 错误消失了。但 localhost/8090 但无法访问此站点
    • 您的意思是 localhost:8090 带有 : 而不是 / ?
    猜你喜欢
    • 1970-01-01
    • 2019-01-21
    • 1970-01-01
    • 2021-11-14
    • 1970-01-01
    • 1970-01-01
    • 2018-11-05
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多