JsonMapperUtil

来源:互联网 发布:seo 锚文本 编辑:程序博客网 时间:2024/06/03 19:00
//// Source code recreated from a .class file by IntelliJ IDEA// (powered by Fernflower decompiler)//package com.sprucetec.datacenter.util;import com.fasterxml.jackson.databind.DeserializationFeature;import com.fasterxml.jackson.databind.ObjectMapper;public class JsonMapperUtil {    private static ObjectMapper objectMapper;    public JsonMapperUtil() {    }    public static ObjectMapper getJsonMapper() {        if(objectMapper == null) {            Class var0 = JsonMapperUtil.class;            synchronized(JsonMapperUtil.class) {                if(objectMapper == null) {                    objectMapper = new ObjectMapper();                    objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);                }            }        }        return objectMapper;    }}
0 0