-
Feb 2nd, 2010, 04:42 AM
#1
Same Bean name in two xml files - doesnt give error ?
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 ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules