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

前端 未结 17 1579
不知归路
不知归路 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 03:10

    Issue: It's because either you are not stopping your application or the application is already somehow running on the same port somehow.

    Solution, Before starting it another time, the earlier application needs to be killed and the port needs to be freed up.

    Depending on your platform you can run the below commands to stop the application,

    on windows

    netstat -anp | find "your application port number"` --> find PID

    taskkill /F /PID

    on Linux,

    netstat -ntpl | grep "your application port number"

    kill pid // pid you will get from previous command

    on Mac OS

    lsof -n -iTCP:"port number"

    kill pid //pid you will get from previous command

提交回复
热议问题