// // Source code recreated from a .class file by IntelliJ IDEA // (powered by Fernflower decompiler) // package com.sprucetec.datacenter.util; import com.fasterxml.jackson.databind.ObjectMapper; public class JsonUtil { private static ObjectMapper json; public JsonUtil() { } public static ObjectMapper createJson() { if(json == null) { Class var0 = JsonUtil.class; synchronized(JsonUtil.class) { if(json == null) { json = new ObjectMapper(); } } } return json; } }
JsonUtil
最新推荐文章于 2024-10-03 08:26:58 发布
本文介绍了一个用于Java项目的JSON工具类的实现方式,该工具类通过单例模式管理了Jackson库的ObjectMapper实例,以方便进行JSON格式的数据转换。
8832

被折叠的 条评论
为什么被折叠?



