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

前端 未结 17 1521
不知归路
不知归路 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:59

    On the console, looking at the topmost right side of the dialog you should see a red button kinda like a buzzer. To stop the spring boot application properly you just ran, go ahead and hit this particular "red" button and your problem is solved. Hope this helps!

    0 讨论(0)
  • 2021-01-30 03:01

    The easier way to solve this is changing the port on the application.properties file;

    enter image description here

    server.port=8081

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

    In case your app is run on httpS, make sure you put right values under the following properties:

    server.ssl.key-store-password=
    server.ssl.key-alias=
    

    I got the same error when I put the wrong values here

    0 讨论(0)
  • 2021-01-30 03:04

    In your windows os follow the following steps:


    1)search services 2)Find Apache tomcat 3)Right-click on it and select end 4)Run your spring boot application again it will work

    0 讨论(0)
  • 2021-01-30 03:06

    If you have devtools like auto build dependency remove it. It is automatically build your project and run it. When you build manually it show port in use.

    0 讨论(0)
  • 2021-01-30 03:08

    On Windows:

    To get started, open the command prompt by clicking on Start and then typing cmd. In the command window, go ahead and type in the following command:

    netstat -a -n -o

    In the command above, the -o parameter is what will add the PID to the end of the table. Press enter and you should see something like this:

    Now to see the name of the process that is using that port, go to Task Manager by pressing CTRL + SHIFT + ESC and then click on the Process tab. In Windows 10, you should click on the Details tab.

    By default, the task manager does not display the process ID, so you have to click on View and then Select Columns.

    You might also need to look into services running in background. To do that right-click and select open services as shown below:

    Hope it helps :)

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