This primary key of “id” is primitive !不建议如此请使用包装类 in Class: “com.spic.project.entity.UserRole”
使用包装类替换基本数据类型。
- 修改前代码:
public class UserRole implements Serializable {
private int id;
private String userId;
private Byte userRole;
}
- 修改后代码:
public class UserRole implements Serializable {
private Integer id;
private String userId;
private Byte userRole;
}