1、> < 等符号在mybatis中的sql语句需要转义
> : > < : <
2、mybatis动态选择
<choose> <when test="startTime != null"> #{startTime}, </when> <otherwise> #NOW(), </otherwise> </choose>
posted on 2017-12-14 14:47 猫咪大王 阅读(109) 评论(0) 编辑 收藏 举报