`

SpringMVC JACKSON反序列化JSON精华语句

 
阅读更多
Type paramType = types[i];
Class contextClass = method.getDeclaringClass();
JavaType realJavaType = mapper.getTypeFactory().constructType(paramType);
values[i] = mapper.readValue(argment.toString(), realJavaType);

//关注类:MappingJackson2HttpMessageConverter

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics