【记录】【持续更新】mybatis使用记录

1、>  < 等符号在mybatis中的sql语句需要转义

> : &gt;

< : &lt;

 

2、mybatis动态选择

<choose>  
    <when test="startTime != null">  
        #{startTime},
    </when>   
    <otherwise>  
        #NOW(),
    </otherwise>  
</choose> 

 

posted on 2017-12-14 14:47  猫咪大王  阅读(109)  评论(0编辑  收藏  举报