com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field 异常

1, com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field 异常

mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);

2,在需要转化的对象的类中添加注解,注解信息如下:

 

@JsonIgnoreProperties(ignoreUnknown = true)

 

参考:https://blog.csdn.net/qq_30739519/article/details/51273544

 

上一篇:3762 二进制矩阵(思维题、构造)


下一篇:LVS负载均衡群集部署——NAT模式