通过com.fastxml.jackson的ObjectMapper对象进行转换:

  1. ObjectMapper objectMapper = new ObjectMapper();
  2.  
    objectMapper.convertValue(Object fromValue, Class<T> toValueType);

相关文章: