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

5Inch HDMI LCD for RPI 800x480

DevExpress Theme Changer ...

.NET Core Dependency Injection with Func as constructor parameter