fastjson解析json时报错default constructor not found. class.............

fastjson解析json时报错default constructor not found. class.............

原创  2014年09月10日 15:40:53
实体类需要有一个空的构造函数  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;
}
实体类需要有一个空的构造函数  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;
}

猜你喜欢

转载自blog.csdn.net/berlor/article/details/78664074
今日推荐