Spring Boot MyBatis-Plus null 字段处理策略

MyBatis-Plus Spring Boot About 178 words

null 字段

MyBatis-Plus对于对象中为null的字段,默认是不会在insertupdate时加入到SQL语句的。

如果需要包括对null字段的处理,则需要显式的调用UpdateWrapperset方法。

FieldStrategy

MyBatis-Plus默认的字段处理策略是FieldStrategy.NOT_NULL跳过null字段。

Views: 320 · Posted: 2024-05-23

————        END        ————

Give me a Star, Thanks:)

https://github.com/fendoudebb/LiteNote

扫描下方二维码关注公众号和小程序↓↓↓

扫描下方二维码关注公众号和小程序↓↓↓
Today On History
Browsing Refresh