Java Object转任意对象 LeeShaoQing 2021-02-07 246 阅读1分钟 通过com.fastxml.jackson的ObjectMapper对象进行转换: ObjectMapper objectMapper = new ObjectMapper(); objectMapper.convertValue(Object fromValue, Class<T> toValueType); 举个小栗子: