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

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

< <= > >= & ' "

&lt;

&lt;=

&gt;

&gt;=

&amp;

&apos;

&quot;

错误写法

addtime   >=    start_time

正确写法

扫描二维码关注公众号,回复: 3003574 查看本文章

addtime  &gt;=  start_time

猜你喜欢

转载自www.cnblogs.com/hjy2018/p/9571783.html