MyBatis mapper.xml中SQL处理小于号与大于号 和小于等于号

我们只需作如下替换即可避免上述的错误:

< <= > >= & ' "

&lt;

&lt;=

&gt;

&gt;=

&amp;

&apos;

&quot;

错误写法

addtime   >=    start_time

正确写法

addtime  &gt;=  start_time

 

posted on 2018-09-01 21:47  大叔加油  阅读(4338)  评论(0编辑  收藏  举报

导航