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

猜你喜欢

转载自jdkleo.iteye.com/blog/2390259