类 JsonMapperThreadLocal

java.lang.Object
cn.iosd.utils.jackson.JsonMapperThreadLocal

public class JsonMapperThreadLocal extends Object
提供 Json 序列化和反序列化功能的工具类。

注:线程安全,使用ThreadLocal来保存ObjectMapper对象,确保每个线程都使用自己的ObjectMapper对象

作者:
ok1996
  • 构造器详细资料

    • JsonMapperThreadLocal

      public JsonMapperThreadLocal()
  • 方法详细资料

    • getObjectMapper

      public static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()