1、原来内容:
代码语言:javascript
复制@Data
@TableName("db_leads")
public class Leads {
@TableId(value = "id", type = IdType.AUTO)
private int id;
@TableField("leads_name")
private int leadsName;
@TableField("name")
private String name;
@TableField("address")
private String address;
}
2、更改内容(int —> Integer):
代码语言:javascript
复制private int id;
private Integer id;
3、最后结果:
代码语言:javascript
复制@Data
@TableName("db_leads")
public class Leads {
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
@TableField("leads_name")
private int leadsName;
@TableField("name")
private String name;
@TableField("address")
private String address;
}