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

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-09
  • 2021-09-11
  • 2021-09-01
  • 2021-11-27
猜你喜欢
  • 2022-12-23
  • 2021-08-15
  • 2021-12-07
  • 2021-04-17
  • 2021-07-04
相关资源
相似解决方案