![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
json、map、bean、互相转换
男人要霸气
这个作者很懒,什么都没留下…
展开
-
json、bean、map互相转换
主角:阿里巴巴的fastJson 1. 引入依赖(maven工程) <dependency> <groupId>com.alibaba</groupId> <artifactId>fastjs原创 2018-12-14 11:34:19 · 2561 阅读 · 0 评论 -
Bean转Map工具类
/** * 将一个 JavaBean 对象转化为一个 Map * @param bean 要转化的JavaBean 对象 * @return 转化出来的 Map 对象 * @throws IntrospectionException 如果分析类属性失败 * @throws IllegalAccessException 如果实例化 Ja...转载 2019-03-08 14:12:51 · 2711 阅读 · 0 评论