@TableId(value = "id", type = IdType.AUTO) private Integer id;
改成
@TableId(value = "id", type = IdType.INPUT) private Integer id;
MyBatis Plus 只插入只有自增id字段的表
原文:https://www.cnblogs.com/xuehu666/p/14884421.html