使用mybatis plus的 updateById出现这个错
There is no getter for property named 'null' in 'xx'
跟踪了代码发现多了个 null 的属性,我感到很奇怪,这时候突然想起会不会是没有加@TableId
将实体类的主键字段加上这个注解,解决问题。
使用mybatis plus的 updateById出现这个错
There is no getter for property named 'null' in 'xx'
跟踪了代码发现多了个 null 的属性,我感到很奇怪,这时候突然想起会不会是没有加@TableId
将实体类的主键字段加上这个注解,解决问题。
评论区