![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
其他
抠脚码农
一起抠脚
展开
-
fastJson复杂类型解析
fastJson解析json字符串使用 定义一个实体类: public class User { private Long id; private String name; private Integer age; public Long getId() { return id; } public v...原创 2019-09-25 00:09:33 · 1760 阅读 · 0 评论 -
json序列化循环引用问题-序列化字符串中包含 $ref问题
问题: 使用fastJson将对象转换成字符串,发现转换后的字符串中包含 $ref字符: 实体类: class Car{ private String name; private String color; public Car(String name, String color) { this.name = name; ...原创 2019-09-30 10:29:29 · 1487 阅读 · 0 评论 -
HttpClient工具类(包含get、post表单和json请求)
httpClient工具类: package com.lvmama.tnt.cps.utils.distributor; import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.exception.ExceptionUtils; import org.apache.http.Header; impo...原创 2019-10-09 22:13:05 · 1294 阅读 · 0 评论