首页 > 技术文章 > mybaits中xml文件大于号和小于号的处理方法

aaron-shu 2016-07-08 15:34 原文

1、转义字符

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

2、<![CDATA[ ]]>

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

 

推荐阅读