mybatis-plus的insert方法出现-id' doesn't have a default value问题 出现这个问题,只需把对应的字段注解设置为,例如: @TableId(value = "id",type = IdType.INPUT) private String id; 即可解决这个报错。