我的工程启动的时候总是报org.xml.sax.SAXParseException: Document root element "beans", must match DOCTYPE root "null".
用的是spring 2.x
配置文件是这么写的
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
<bean id="tagAction" class="TagAction" scope="prototype">
<property name="tagDao" ref="tagDao" />
</bean>
</beans>怎么回事?
用的是spring 2.x
配置文件是这么写的
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
<bean id="tagAction" class="TagAction" scope="prototype">
<property name="tagDao" ref="tagDao" />
</bean>
</beans>怎么回事?
楼主【TDwebber】截止到2008-07-04 15:04:16的历史汇总数据(不包括此帖):
发帖的总数量:2 发帖的总分数:40
结贴的总数量:1 结贴的总分数:20
无满意结贴数:0 无满意结贴分:0
未结的帖子数:1 未结的总分数:20
结贴的百分比:50.00 % 结分的百分比:50.00 %
无满意结贴率:0.00 % 无满意结分率:0.00 %
楼主加油
<bean></bean>
</beans>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
"http://www.springframework.org/dtd/spring-beans.dtd">
<beans></beans>
2.x可以使用schema方式声明吗不是。
http://forum.springframework.org/showthread.php?t=37877
http://forum.springframework.org/showthread.php?t=41679
resin里可能有spring吗?