map.xml文件报The content of element type "mapper" must match "(cache-ref|cache|resultMap*|parameterMap*

来源:互联网 发布:网络主播思瑞直播全集 编辑:程序博客网 时间:2024/05/29 10:09

在map.xml文件中报这么个错

The content of element type "mapper" must match "(cache-ref|cache|resultMap*|parameterMap*|sql*|

 insert*|update*|delete*|select*)+".


出现这个问题  是因为

<insert></insert>

<delete></delete>

<update></update>

<select></select>

等标签写的不完整 或者写错位置了

比如<insert></insert>只写了一个,没有写结尾</insert>

或者<insert></insert>中的</insert>写的位置不对,比如写在了代码里面

1 0