Postări

Se afișează postări din septembrie, 2017

Java SpringBoot different properties file dev/test/production

Imagine
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.