title: Overriding Spring bean
body: <p>I have the following scenario:</p>
  
  <ol>
  <li>Spring project A with multiple bean configurations, including a bean named "searchHelper":<br>
  <code>&lt;bean name="searchHelper" class="com.test.SearchHelperImpl"/&gt;</code><br>
  where <em>SearchHelperImpl</em> implements "SearchHelper" interface</li>
  <li>Spring project B depends on A with a custom <em>SearchHelperBImpl</em></li>
  </ol>
  
  <p>What I was thinking of making is just copying the whole configuration into the new project and changing what needs to be changed, but that's not convenient and there must be an easier way of doing this.</p>
  
  <p>My question is, how do I override the definition of the "searchHelper" bean to use <em>SearchHelperBImpl</em> instead of <em>SearchHelperImpl</em>? I want to use the same bean name in order for everything that uses this name to use the new implementation. I am using Spring 3.2.2</p>
  
  <p>Thanks</p>