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

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

    If you got any error on your console by saying, “Embedded servlet container failed to start. Port 8080 was already in use.” Then go to application.properties file and add this property “server.port = 8090”.

    Actually the default port for spring boot is 8080, if you have something else on that port, the above error will occur. So we are asking spring boot to run on other port by adding “server.port = 8090” in application.properties file.

提交回复
热议问题