Until now, I'm setting the following environment variable in my ~/.bash_profile
:
export SPRING_PROFILES_ACTIVE=local
This set my active spring profile. But now, I want to add the local profile to other profiles defined in application.properties
and not replace them.
In the Spring Boot documentation, there is a section about adding active profile, but I see nothing about adding active profile from an environment variable.
I've tried to set the SPRING_PROFILES_INCLUDE
environment variable, but this has no effect.
How to do this?
P.S.: I'm using Spring Boot 1.4.2.