title: Can we override the spring beans declared in one xml config in another config?
body: <p>I am a newbie to Spring so this question might have an easy answer so please bear me if i'm asking something silly.</p>
  
  <p>I have a global spring config file which I want to use in many applications and I would like to override some properties of few beans differently in different applications. Can you suggest the best way to do this?</p>
  
  <p>For example, I've something like this in <code>global.xml</code>.</p>
  
  <pre><code>&lt;bean id="testInstance" class="testClass"&gt;
      &lt;property name="mem1" ref="val1"/&gt;
      &lt;property name="mem2" ref="val2"/&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>Now, I want to refer <code>testInstance</code> from a different spring config and use it after overriding <code>mem1</code>. Is it possible in spring? Do i need to use custom tags for that?</p>