解决MyBatis异常:The content of elements must consist of well-formed character data or markup.

耗尽温柔 提交于 2019-12-01 22:38:31

错误:The content of elements must consist of well-formed character data or markup.

分析:在MyBatis的映射文件中出现了特殊字符的情况下会出现以上错误。特殊字符有:  < 小于号 ,>大于号等

解决:要用<![CDATA[]]>包裹着。

<![CDATA[
  select * from tb_users where id<=100
]]>
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!