出现这个问题,只需把对应的字段注解设置为,例如:

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

即可解决这个报错。

相关文章: