Mybatis的小于号Tag name expected 在Mybatis中写mapper的xml文件小于号是不认识的,需要用转义字符,大于符号是认识的。 select * from info_record where uid = #{uid} AND recordDate < #{recordDate} 改写为: select * from info_record where uid = #{uid} AND recordDate < #{recordDate}