mybytisplus配置
1当数据库有自动生成的主键id,在pojo类需要有注解@TableId(type = IdType.AUTO)
@Data
@TableName("creditor_Info")
public class CreditorInfo {
@TableId(type = IdType.AUTO)
private Integer id;
1当数据库有自动生成的主键id,在pojo类需要有注解@TableId(type = IdType.AUTO)
@Data
@TableName("creditor_Info")
public class CreditorInfo {
@TableId(type = IdType.AUTO)
private Integer id;