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

http://blog.csdn.net/pengpenggxp/article/details/39181859

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

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐