Java SpringBoot different properties file dev/test/production



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

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

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

Comentarii

Postări populare de pe acest blog

RpiCar

Building Cross-Platform Desktop Apps with Electron.NET

NodeJS - Npm - set global node_modules