请教spring 配置文件问题

09-10-11 xunifeng

在spring配置文件中配置了一个bean:

<bean id="dataSource" class="com.asiainfo.appanalyze.base.util.DynamicDataSource">

<property name="targetDataSources">

<map>

<entry key="ds0" value-ref="ds0"/>

<entry key="ds1" value-ref="ds1"/>

<entry key="ds2" value-ref="ds2"/>

</map   

</property>

</bean>

启动server时,报错:

org.xml.sax.SAXParseException: cvc-complex-type.2.3: Element 'map' cannot have character [children], because the type's content type is element-only.

请各位达人赐教,谢谢。

[该贴被xunifeng于2009-10-12 12:05修改过]

1
banq
2009-10-13 21:50

把 Element 'map' cannot have character [children], because the type's content type is element-only.到google翻译器中翻译下,就知道问题所在。

编写程序,起码要能看懂点出错英文。