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

前端 未结 22 2568
梦毁少年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:18

    You have to stop the current process and run your new one. In Eclipse, you can press this button to ReLaunch your application:

    0 讨论(0)
  • 2020-12-07 11:18

    Open "localhost:8080" on your browser and see what is running on this port. I did it and I just found Oracle 10g XE running on background, so I went to start->Services and stopped all oracle services. Then I redo mvnw spring-boot:run on IntelliJ and it runs like magic.

    0 讨论(0)
  • 2020-12-07 11:20

    Create application.properties file under src/main/resources folder and write content as

    server.port=8084

    Its runs fine. But every time before run need to stop application first by click on red button upper on the IDE enter image description here

    or try

    RightClick on console>click terminate/Disconnect All

    0 讨论(0)
  • 2020-12-07 11:20

    Just click red button to stop all services on eclipse than re- run application as Spring Boot Application - This worked for me.

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