In Spring boot application, how run multiple instances of same profile on same server (OS)?
To run multiple instances of same profile of service
java -jar -Dserver.port=7012 -Dspring.profiles.active=production demo-0.0.1-SNAPSHOT.jar
java -jar -Dserver.port=7011 -Dspring.profiles.active=production demo-0.0.1-SNAPSHOT.jar
If you want to run multiple instances of your project in sts (spring tool suite) follow below steps
you can create as many duplicate instance you want
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With