<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.1.46.sec01</version>
</dependency>
JSON.parseObject(JSON.toJSONString(Map<String, ? extends Object>), Class<T> cls);
另一种方法就是BeanUtils类中的
BeanUtils.populate(Object bean, Map<String, ? extends Object> properties)
