您的位置:首页 > 其它

XML document structures must start and end within the same entity.

2016-01-07 09:27 465 查看
做项目的时候用的框架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>

中文的注释 例如字典表前后一定要有空格 否则就会报该错误
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: