通过com.fastxml.jackson的ObjectMapper对象进行转换:
-
ObjectMapper objectMapper = new ObjectMapper();
-
objectMapper.convertValue(Object fromValue, Class<T> toValueType);
本文参考链接:https://www.cnblogs.com/maohuidong/p/14096709.html
通过com.fastxml.jackson的ObjectMapper对象进行转换: