Issue
How to start single Spring Boot Microservice on Multiple Ports in STS/eclipse ?
Means one app is running on 8080 port. So how we can run the same app on another ports as well.
Solution
To start a single microservice on multiple ports. Steps are below.
1. Right click on project -> Run As.. -> Run Configuration.
2.Create New Boot App configuration. In Environment tab add "Server.port =9090" (** Use any port you like and available :) ). Apply and Run. This will execute same microservice on same port . For more use above steps 1 & 2.
Danke,
Rahul
Answered By - rahulnikhare
Answer Checked By - Mildred Charles (JavaFixing Admin)