mybatis-plus插入报错:id类型不匹配

Caused by: org.apache.ibatis.reflection.ReflectionException: Could not set property 'id' of 'class xx.xx.module.xxx.domain.xxx' with value '1229606785200021505' Cause: java.lang.IllegalArgumentException: argument type mismatch

Could not set property 'id' of 'class xx.xxx.module.xxx.domain.xxx' with value '1229606785200021505' Cause: java.lang.IllegalArgumentException: argument type mismatch

原因

mybatis-plus 插入需要在实体id上使用@TableId(type = IdType.AUTO) 注解

Could not set property 'id' of 'class xx.xxx.module.xxx.domain.xxx' with value '1229606785200021505' Cause: java.lang.IllegalArgumentException: argument type mismatch

相关文章:

  • 2021-09-22
  • 2021-12-16
  • 2022-12-23
  • 2022-01-07
  • 2021-08-05
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-04-19
  • 2021-07-16
  • 2022-12-23
  • 2022-01-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案