I have defined a variable in my .bash_profile like this :
export PROFILE=local
Now, I want to get this value in my spring boot application to load different configuration files according to this value.
To do this, I used the annotation @Value but spring can't resolve the value of profile :
@Value("${profile}")
private String environment;
What have I missed ?
EDIT : This code is launched from a JUnit test inside Eclipse (launched as desktop application)