spring - Map of Maps Initialization in Application Context -
i want initialize map of maps in spring context file. i'm getting xsd error.
cvc-complex-type.2.4.d: invalid content found starting element 'map'. no child element expected @ point.
this bean defnition:
<bean id="votodomapper" class="com.yyy.yyy.yyy.yyy.configuration.votodomapper" factory-method="getinstance"> <property name="channeltomapper"> <map key-type="java.lang.string" value-type="java.util.hashmap"> <entry key="yyy" > <value> <map> <entry key="com.yyy.yyy.yyy.asyncaddresschangeeventvo"> <value>com.yyy.yyy.yyy.vo.yyy.fakeacctaddressevent</value> </entry> </map> </value> </entry> </map> </property> </bean>
any appreciated.
one way
<util:map> <entry key="x" value-ref="val1"></entry> </util:map> <util:map id="val1"> <entry key="a" value="blob"></entry> <entry key="b" value="clob"></entry> </util:map>
enable xmlns:util="http://www.springframework.org/schema/util
Comments
Post a Comment