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