fastjson解析json时报错default constructor not found. class............
fastjson
FASTJSON 2.0.x has been released, faster and more secure, recommend you upgrade.
项目地址:https://gitcode.com/gh_mirrors/fastj/fastjson

·
实体类需要有一个空的构造函数
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;
}
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;
}




FASTJSON 2.0.x has been released, faster and more secure, recommend you upgrade.
最近提交(Master分支:27 天前 )
c942c834 - 2 年前
5bc4709b - 2 年前
更多推荐
所有评论(0)