mybatis CDATA引起的查询失败

 

<![CDATA[
]]>

在被CDATA包围的所有字符串不会被mybatis解析, 直接写入sql了
CDATA应该只用在特殊字符前后,不能用在<if> <foreach>等标签前面, 下图中and前面可以使用,但是<if>前面不能用

 
posted @ 2018-06-07 19:11  funny_coding  阅读(524)  评论(0编辑  收藏  举报
build beautiful things, share happiness