zoukankan      html  css  js  c++  java
  • SpringBoot运行报Address already in use: bind

    java.net.BindException: Address already in use: bind
                at sun.nio.ch.Net.bind0(Native Method)
                at sun.nio.ch.Net.bind(Unknown Source)
                at sun.nio.ch.Net.bind(Unknown Source)
                at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
                at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
                at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:473)
    o.apache.catalina.core.StandardService   : Failed to initialize connector [Connector[org.apache.coyote.http11.Http11NioProtocol-8080]]
    
        org.apache.catalina.LifecycleException: Failed to initialize component [Connector[org.apache.coyote.http11.Http11NioProtocol-8080]]
                at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106)
                at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
                at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
                at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:814)
                at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
                at org.apache.catalina.startup.Tomcat.start(Tomcat.java:335)
                at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.initialize(TomcatEmbeddedServletContainer.java:57)
                at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.<init>(TomcatEmbeddedServletContainer.java:52)
                at 

    "Address already in use" means, there is already another application running on port 8080. Use your OS tools to find that process and end it, before you start your application, or let your application run on another port. If you use an embedded server in your Boot application, you can specify the following property:

    server.port=8085 
    

    Of course you can choose whatever port you want.

    这段的意思大致是在application.properties文件中加上一句server.port=8085

  • 相关阅读:
    Oracle合并某一列
    button的FlatStyle和FlatAppearance属性
    Winform中ComBox大小设置
    项目添加程序集的引用后老是报错
    VS中文档大纲视图的作用
    将DotNetBar添加到工具箱中
    Win10设置vs2010总是以管理员身份运行
    SQL SERVER2008 打开脚本总是报“未能完成操作,存储空间不足”
    如何用vs2013开发人员命令提示工具执行一个方法(一个简单的demo)
    windows mysql 8.0 安装 解压版
  • 原文地址:https://www.cnblogs.com/wpcnblog/p/7274233.html
Copyright © 2011-2022 走看看