实体类需要有一个空的构造函数
public class User { private String id; private String mobile; private String nickname; public User() { super(); } public User(String id,String mobile,String nickname) { super(); this.id = id; this.mobile = mobile; this.nickname = nickname; }