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

5Inch HDMI LCD for RPI 800x480

DevExpress Theme Changer ...

.NET Core Dependency Injection with Func as constructor parameter