MyBatis 的Mapper中有小于号的处理
<![CDATA[ select * from person t where t.birthday < #{birthday} ]]>
也可以进行转义:
| < | < | 小于号 | 
| > | > | 大于号 | 
| & | & | 和 | 
| ' | ’ | 单引号 | 
| " | " | 双引号 | 
参见:http://blog.csdn.net/zheng0518/article/details/10449549

 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号