Spring Boot application in eclipse, the Tomcat connector configured to listen on port XXXX failed to start

前端 未结 17 1486
不知归路
不知归路 2021-01-30 02:12

I\'m developing a REST API using Spring Framework.

First I wasn\'t able to run my application because of the same problem. The port 8080 on my computer is busy. Then I

相关标签:
17条回答
  • 2021-01-30 02:48

    Find the process and terminate it. On Windows do a Control+Alt+Delete and then find the "Java(TM) Platform SE Binary" process under the Processes Tab. For example:

    On Ubuntu, you can use "ps aux | grep java" to find the process and "kill -9 PID_NUMBER" to kill the process.

    OR

    If you're using a Spring boot application, go to application.properties and add this:

    server.port = 8081
    
    0 讨论(0)
  • 2021-01-30 02:51

    Another easy way of solving this error is right clicking in the console and click on Terminate/Disconnect All. Afterwards run the application it should work fine.

    0 讨论(0)
  • 2021-01-30 02:52

    if it's convenient for you, and you don't want to use the command line, you can reboot your computer, it helps!

    0 讨论(0)
  • 2021-01-30 02:54

    For those who are experiencing same problem after controlling there is no suspicious java process which allocate the port, there is no red square on eclipse to terminate any process and also there is no change even you try different port for your spring boot application.

    might sound stupid but; restarting eclipse works. :)

    0 讨论(0)
  • 2021-01-30 02:58
    1. Find the process ID (PID) for the port (e.g.: 8080)

      On Windows:

      netstat -ao | find "8080"
      

      Other Platforms other than windows :

      lsof -i:8080
      
    2. Kill the process ID you found (e.g.: 20712)

      On Windows:

      Taskkill /PID  20712 /F
      

      Other Platforms other than windows :

      kill -9 20712   or kill 20712
      
    0 讨论(0)
  • 2021-01-30 02:58

    right click on your console and terminate. or click on stop

    0 讨论(0)
提交回复
热议问题