String类型

<if test="str!=null and str!=''">
      ...
</if>

Integer类型

<if test="it!=null">
      ...
</if>

str!=''判断的写法只适合String类型,其他类型使用会报错

相关文章:

  • 2021-06-24
  • 2022-12-23
  • 2021-11-14
  • 2022-12-23
  • 2021-10-25
  • 2021-09-26
猜你喜欢
  • 2021-10-04
  • 2022-12-23
  • 2022-12-23
  • 2021-07-07
  • 2022-12-23
  • 2021-07-10
  • 2022-12-23
相关资源
相似解决方案