2021
09-28
09-28
Jackson 反序列化时实现大小写不敏感设置
常用配置ObjectMapperobjectMapper=newObjectMapper();objectMapper.configure(Feature.IGNORE_UNKNOWN,true);objectMapper.configure(Feature.WRITE_BIGDECIMAL_AS_PLAIN,true);objectMapper.configure(JsonParser.Feature.ALLOW_MISSING_VALUES,true);objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES,false);objectMapper.configure(MapperFeature.ACCEPT_CASE_INSENSITIVE_PROPERTIES,false);//...
继续阅读 >