vendredi 3 avril 2015

Spring boot: resolve property files when using more than one profile

im using spring boot. It has this nice feature of automatically finding property files when using profile, so if I add



spring.profiles.active=local


to application.properties it also finds application-local.properties file. Is there any way to use the same feature when more than one profile is specified? application-local-dk.properties doesnt work. I want to have separated files for different environment-locale pairs. so:



application-local-dk.properties
application-local-se.properties...
application-test-dk.properties
application-test-se.properties
application-prod-dk.properties...

Aucun commentaire:

Enregistrer un commentaire