bean
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@NoArgsConstructor
public class TestVo{
private String dDate;
private Integer dCount;
}
接口返回成了:
{"response":{"docs":[{"dDate":"2019-11-01","dCount":924612},{"dDate":"2019-11-02","dCount":920951},{"dDate":"2019-11-03","dCount":893763},{"dDate":"2019-11-04","dCount":743086},{"dDate":"2019-11-05","dCount":782242},{"dDate":"2019-11-06","dCount":781661})
问题在于:这里格式其下2种:
1 dCount--->dcount;
2 UserName-->userName;
3 phoneNumber--->ok不变
解决办法,自己写对应字段的get set方法
参考https://blog.csdn.net/syr1136877833/article/details/90644530