![MyBatis 的Mapper中有小于号的处理 MyBatis 的Mapper中有小于号的处理](https://image.shishitao.com:8440/aHR0cHM6Ly9ia3FzaW1nLmlrYWZhbi5jb20vdXBsb2FkL2NoYXRncHQtcy5wbmc%2FIQ%3D%3D.png?!?w=700&webp=1)
<![CDATA[
select * from person t where t.birthday < #{birthday}
]]>
也可以进行转义:
< |
< |
小于号 |
> |
> |
大于号 |
& |
& |
和 |
' |
’ |
单引号 |
" |
" |
双引号 |
参见:http://blog.csdn.net/zheng0518/article/details/10449549