使用JSON.parseObject深拷贝二-复杂型拷贝
问: 如果json拷贝类型类似Page<T>这种复杂型的呢 答: 使用JSON的public static <T> T parseObject(String text, TypeReference<T> type, Feature... features) 方法; 代码如下: Page<EtcPassBillDataResponseVo> voPage = JSON.parseObject(JSON.toJSONString(dtoPage), new TypeReference<Page<EtcPassBillDataResponseVo>>() {