福州电脑网_福州电脑维修_福州电脑之家_福州iThome
  • 首页
  • 编程之家
  • 系统教程
  • 数码周边
  • 电脑
首页 >  标签 >  updateById

mybatis plus 中 使用 updateById更新字段为null 不更新问题 @TableField(updateStrategy = FieldStrategy.NOT_NULL)

mybatis plus 中 使用 updateById或updateBatchById 更新字段为null 不更新问题解决方法为:在该字段上加上TableField(strategyFieldStrategy

7月前540
CopyRight © 2022 All Rights Reserved 福州电脑网_福州电脑维修_福州电脑之家_福州iThome 备案号:豫ICP备2022026798号-13