title: How to get Server Home directory path in tomcat in spring bean configuration file
body: <p>I have a web application running in tomcat. I have some properties in a file. </p>
  
  <p>currently I am using absolute path to file in bean configuration like this.</p>
  
  <pre><code>&lt;bean id="propertyConfigurer"
          class="com.RAPropertyUtil"&gt;
          &lt;property name="location"&gt;
              &lt;value&gt;file:/home/user/config/application.properties&lt;/value&gt;
          &lt;/property&gt;
      &lt;/bean&gt;
  </code></pre>
  
  <p>I want to make it relative to server home directory something like that. </p>
  
  <pre><code>&lt;value&gt;${server.home}/conf/application.properties&lt;/value&gt;
  </code></pre>
  
  <p>Also could I make to server independent, like if I can get home directory of any server Tomcat or JBOSS, I don't have to change this configuration</p>