出现这个问题,只需把对应的字段注解设置为,例如: @TableId(value = "id",type = IdType.INPUT) private String id; 即可解决这个报错。 相关文章: 2022-12-23 2022-01-17 2021-04-13 2021-08-19 2022-12-23 2021-06-06 2021-05-03 2021-05-17