G'day!
I'm trying to merge my maps in Spring. However, I'm coming across a problem with it.
So, here's the code (and yes, I'm using Spring 2.0):
Now, the problem is that at startup, I get this error:Code:<bean id="parent-bean" abstract="true"> <property name="mapValues"> <map> <entry key="key"> <value>value</value> </entry> </map> </property> </bean> <bean id="child-bean" parent="parent-bean" class="some.class.here"> <property name="mapValues"> <map merge="true"> <entry key="key2"> <value>value2</value> </entry> </map> </property> </bean>
Where, Line XXX is listed every time I have a merge=true definition. I can't see the problem - can anyone else?Code:org.springframework.beans.factory.BeanDefinitionStoreException: Line XXX in XML document from ServletContext resource [/WEB-INF/spring-config/config-name.xml] is invalid; nested exception is org.xml.sax.SAXParseException: Attribute "merge" must be declared for element type "map". Caused by: org.xml.sax.SAXParseException: Attribute "merge" must be declared for element type "map".
Thanks,
Andrew


Reply With Quote