-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancementA general enhancement
Milestone
Description
Trent Andrews opened SPR-3734 and commented
If you have two beans in the same xml(Example 1) file spring will detect that you have two beans with the same name and throw XmlBeanDefinitionStoreException
===== Example 1 =====
<bean id="foo1" class="foo.Foo"><property name="echo" value="1"/></bean>
<bean id="foo1" class="foo.Foo"><property name="echo" value="2"/></bean>
But if you import one xml file into another it does not see the problem and I believe that it should.
==== Example 2 ====
File 1
<import resource="file2.xml"/>
<bean id="foo1" name="foo1" class="foo.Foo"><property name="echo" value="1"/></bean>
File 2(file2.xml)
<bean id="foo1" name="foo1" class="foo.Foo"><property name="echo" value="1"/></bean>
Affects: 2.0.6
Attachments:
- Spring.zip (2.97 kB)
Issue Links:
- Circular dependence forbidding cannot be easily configured. [SPR-2048] #6741 Circular dependence forbidding cannot be easily configured.
2 votes, 2 watchers
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancementA general enhancement