读书人

XML document structures must start

发布时间: 2012-11-23 22:54:33 作者: rapoo

XML document structures must start and end within the same entity.
做项目的时候用的框架spring3.0+struts2.0+mybatis
写了一个配置文件 结果报错如下:
XML document structures must start and end within the same entity.


经过仔细检查 除了标签要写对应之外,就是那个中文注释问题, 一定要前后空格 隔开
<!-- 说明 -->

例如:
<!-- 字典表 -->
<select id="getArea" parameterType="java.util.HashMap" resultType="com.genertech.ssp.model.Dictionary">
select f_id as id, f_value as value from t_sys_dictionary where f_code='FPQY'
</select>

中文的注释 例如字典表前后一定要有空格 否则就会报该错误

读书人网 >XML SOAP

热点推荐