mybatis-plus插入时会默认主键字段是自增,需要在实体类的主键上添加注解
@TableId(type = IdType.INPUT)
@TableField("ID")
private String id;
mybatis-plus插入时会默认主键字段是自增,需要在实体类的主键上添加注解
@TableId(type = IdType.INPUT)
@TableField("ID")
private String id;