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

> : &gt;

< : &lt;

 

2、mybatis动态选择

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

 

相关文章:

  • 2021-06-03
  • 2021-08-04
  • 2021-07-14
  • 2021-11-17
  • 2021-12-25
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-19
  • 2022-12-23
  • 2021-06-25
  • 2021-08-31
  • 2021-08-01
  • 2022-12-23
  • 2021-08-28
相关资源
相似解决方案