【错误异常】The content of element type "mapper" must match "(cache-ref|cache|resultMap*|parameterMap*|sql*|insert*|update*|delete*|select*)+".

发布时间 2023-09-18 17:30:26作者: Phoenixy

The content of element type "mapper" must match "(cache-ref|cache|resultMap*|parameterMap*|sql*|insert*|update*|delete*|select*)+".

 

服务启动异常

 

排查mapper.xml

  1、标签是否完整 

<insert></insert>

<delete></delete>

<update></update>

<select></select>

 

  2、标签是否对齐

  3、xml文件中是否存在不必要的换行 、符号等,或注释后面的特殊字符

  4、是否存在标签外的语句