<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)

 

相关文章:

  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
  • 2022-01-29
  • 2022-12-23
  • 2021-12-04
  • 2022-12-23
  • 2021-06-20
猜你喜欢
  • 2021-05-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-22
相关资源
相似解决方案