Mybatis 中的轉義字符 Mybatis 中的轉義字符

Mybatis 中的轉義字符

 

 記錄如下mybatis中的轉義字符,方便之後本身看一下html

Mybatis轉義字符表
&lt; < 小於
&gt; > 大於
&amp; &
&apos; ' 單引號
&quot; " 雙引號

須要注意的是分號是必不可少的。 好比 a > b 咱們就寫成  a &gt; bmybatis

 

固然啦, 咱們也能夠用另一種,就是<![CDATA[ ]]>符號。 在mybatis中這種符號將不會解析。 好比post

<![CDATA[ when min(starttime)<='12:00' and max(endtime)<='12:00' ]]>    
相關文章
相關標籤/搜索