title: Spring to read from my system environment variables
body: <p>I want to use my system environment variables (i.e use variable <code>FOO</code> that I have defined in my <code>.bash_profile</code> <code>export FOO=BAR</code>) for values in Spring's applicationContext.xml;</p>
  
  <p>For example:</p>
  
  <pre><code>&lt;bean id="dataSource" ...&gt;
     &lt;property name="jdbcUrl" value="${FOO}" /&gt;
  ...
  &lt;/bean&gt;
  </code></pre>
  
  <p>I use both the Maven-tomcat-plugin and Tomcat inside IntelliJ to run my server.</p>
  
  <p>Right now when my webapp starts up, it can't find the system variables.</p>
  
  <p>What do I have to do to get Spring to read from my system environment variables?</p>
  
  <p>P.S. I have already checked out <a href="https://stackoverflow.com/questions/3965446/how-to-read-system-environment-variable-in-spring-applicationcontext">how to read System environment variable in Spring applicationContext</a>, but doesn't seem to work for me</p>