Result<Lecture> resDY = JSON.parseObject(msgStr,new TypeReference<Result<Lecture>>() {});
我想把这句代码用工具类写出来,求怎么写?
Result类如下:
public class Result<T> {
private String rspCode;
private String rspMsg;
private T result;
private List<T> list;
}
紫衣仙女
HUWWW
相关分类