Class OmConstants

java.lang.Object
cn.sinozg.applet.common.constant.OmConstants

public class OmConstants extends Object
jackson 实例 web环境下初始化注入 非web环境下 初始化
Since:
2024-01-05 16:09
Author:
xieyubin
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final org.slf4j.Logger
     
    private static com.fasterxml.jackson.databind.ObjectMapper
    ObjectMapper
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.fasterxml.jackson.databind.ObjectMapper
    获取实例
    static void
    setOm(com.fasterxml.jackson.databind.ObjectMapper om)
    web方式注入

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • LOG

      private static final org.slf4j.Logger LOG
    • OM

      private static volatile com.fasterxml.jackson.databind.ObjectMapper OM
      ObjectMapper
  • Constructor Details

    • OmConstants

      public OmConstants()
  • Method Details

    • setOm

      public static void setOm(com.fasterxml.jackson.databind.ObjectMapper om)
      web方式注入
      Parameters:
      om - 对象
    • getOm

      public static com.fasterxml.jackson.databind.ObjectMapper getOm()
      获取实例
      Returns:
      实例