title: Spring Property Consolidation
body: <p>I've got a Spring bean:</p>
  
  <pre><code>&lt;bean id="sharedBean" class="com.bean.SharedBean"&gt;
      &lt;constructor-arg name="app-name" value="#{ config['app.name'] }"/&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>This bean is defined in a jar and used in two apps that both get deployed to the same tomcat server. I've only got one properties file the apps share and I'd like to keep it that way if possible. You might see the problem - I need two values for app.name (one for each web app). </p>
  
  <p>I need to set the app.name independently in each app. I don't mind hard coding the value in the Java (but don't think I can inject the value in that direction). I know I can introduce another properties file at a different path and override but I'm hoping there is a better way I can accomplish this through Spring that will allow me to maintain only one shared properties file.</p>