Can we have duplicate names for the same bean id that is mentioned in the XML? If not, then how do we override the bean in Spring?
I will add that if your need is just to override a property used by your bean, the id approach works too like skaffman explained :
In your first called XML configuration file :
3
4
In your second called XML configuration file :
6
Then your bean "myBeanId" will be instantiated with a "myList" property of one element which is 6.