title: Why is overriding spring bean declared in one config allowed in another config?
body: <p>I am starting to learn Spring and came across a feature of Spring - <a href="https://stackoverflow.com/questions/9093768/can-we-override-the-spring-beans-declared-in-one-xml-config-in-another-config">overriding spring bean declared in one xml config in another config</a>. </p>
  
  <p>I do not understand where this feature can be useful. It seems illogical because same container will be configured using two different xmls and even when there are two beans with same ID, instead of reporting the ambiguity it is defaulting to the last one.</p>
  
  <p>Is there a practical scenario where this can actually be useful? Is this good practice?</p>