Java SpringBoot different properties file dev/test/production

In order to make Spring java -jar have to take different at launch time based on whatever you specify {dev/test/production} simply do this:

java -jar {MyAwesomneJar} --spring.config.location={path}/

Where {path} is the dev, test or production folder where the file is contained.


Postări populare de pe acest blog

.NET Core Dependency Injection with Func as constructor parameter

Building Cross-Platform Desktop Apps with Electron.NET