'How to start single Spring Boot Microservice on Multiple Ports in STS/eclipse? [closed]

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 1:[1]

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

enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 rahulnikhare