Arron的博客

导航

mybaits中xml文件大于号和小于号的处理方法

1、转义字符

原符号 < <= > >= & ' "
替换符号 &lt; &lt;= &gt; &gt;= &amp; &apos; &quot;

2、<![CDATA[ ]]>

<![CDATA[ when time >= 5  and time < 180  then '[5,180)' ]]>  

 

posted on 2016-07-08 15:34  aaron_shu  阅读(320)  评论(0编辑  收藏  举报