I tried the following. Inside META-INF/spring I created two config files. config1.xml and config2.xml.

I have this inside config1.xml

<beans:bean id="test" class="com.test.Test"></beans:bean>

When i copy the same bean into config2.xml I expect a error. But it doesnt throw a error. Why so ?

If i copy in teh same config file it throws error , but not in different files it doesnt.Isnt it one applicationContext which is created , then why is teh behavior different ?