Springboot 报错 Cause: java.lang.IllegalArgumentException: argument type mismatch

 

 出现问题原因:

    @TableId(value = "id", type = IdType.ID_WORKER)
    private String id;

实体类中加入了自动生成ID的注解,类型为String类型,导致报错

解决:

把String类型换成Long类型即可

相关文章:

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