8080 port already taken issue when trying to redeploy project from Spring Tool Suite IDE

前端 未结 22 2667
梦毁少年i
梦毁少年i 2020-12-07 10:49

I have strange thing when I try to modify Spring project inside my Spring Tool Suite. On the first load (deploy) everything is fine, application compiles and runs on localho

22条回答
  •  广开言路
    2020-12-07 11:01

    There are two ways to resolve this issue.Try option 1 first, if it doesn't work try option 2, and your problem is solved.

    1) On the top right corner of your console, there is a red button, to stop the spring boot application which is already running on this port just click on the red button to terminate.

    2) If the red button is not activated you need to right click on the console and select terminate/disconnect all. Hope this helps.

    Bonus tip:- If you want to run your server on a different port of your choice, create a file named application.properties in resource folder of your maven project and write server.port=3000 to run your application on port 3000

提交回复
热议问题