When starting/relaunching a Spring Boot App and the app runs on a port which was already in use before I got an error:
Web server failed to start. Port 8092 was already in use.
So, everytime I am starting a Spring Boot App I have to switch server.port
in application.properties
.
Note: Because I do not have the Run as "Spring Boot App" I use the work around mentioned here to start it: First Answer, How to run Spring Boot web application in Eclipse itself?
Is there a solution to avoid switching ports every time?
Thanks a lot!