fastjson解析json时报错default constructor not found. class............. 原创 2014年09月10日 15:40:53 12040 实体类

来源:互联网 发布:张士超钥匙事件 知乎 编辑:程序博客网 时间:2024/06/16 17:25

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;
}
阅读全文
0 0
原创粉丝点击