java获取泛型类型

import com.alibaba.fastjson.TypeReference;



return JSON.parseObject(str, new TypeReference<BaseResModel<GetLiveListByLiveIdListResDto>>() {
});
原文地址:https://www.cnblogs.com/arraylist/p/6626643.html