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> 中文的注释 例如字典表前后一定要有空格 否则就会报该错误

相关文章

php输出xml格式字符串
J2ME Mobile 3D入门教程系列文章之一
XML轻松学习手册
XML入门的常见问题(一)
XML入门的常见问题(三)
XML轻松学习手册(2)XML概念