首页 JavaWeb spring +mybatis 出现The content of elements must consist of well-formed

spring +mybatis 出现The content of elements must consist of well-formed

作者:胡同里的砖头 围观群众:546 更新于:2018-04-19

在ibatis的映射文件中出现了特殊字符的情况下会出现以上错误。

特殊字符有:  < 小于号 ,>大于号等

要用

<![CDATA[

select * from tb_users where id<=100

]]>

包裹着。

  • 本文标题: spring +mybatis 出现The content of elements must consist of well-formed
  • 文章分类:【JavaWeb】
  • 非特殊说明,本文版权归【胡同里的砖头】个人博客 所有,转载请注明出处.
留言评论
站点声明:
1、本站【胡同里的砖头】个人博客,借鉴网上一些博客模板,取其各优点模块自行拼装开发,本博客开发纯属个人爱好。
2、所有笔记提供给广大用户交流使用,可转载,可复制,纯个人开发所遇问题锦集记录使用
Copyright © huzlblog.com All Rights Reserved. 备案号:苏ICP备2021056683号-8