当前位置:首页 - 博客 - 正文

mybatisplus出现Could not set property 'ID' of 'class ' xxx with value '1'

  1. org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: Could not set property 'id' of 'class com.speechb.entity.BookType' with value '1649581862303162370' Cause: java.lang.IllegalArgumentException: argument type mismatch
  2. at

给id设置自增,不需要插件生成

  1. @TableId(type = IdType.AUTO)
  2. private Integer id;