类 ObjectMapperAutoconfigure

java.lang.Object
net.guerlab.spring.commons.autoconfigure.ObjectMapperAutoconfigure

@Configuration
@EnableConfigurationProperties(NumberJsonStringFormatProperties.class)
public class ObjectMapperAutoconfigure
extends java.lang.Object
ObjectMapper配置
作者:
guer
  • 构造器概要

    构造器 
    构造器 说明
    ObjectMapperAutoconfigure()  
  • 方法概要

    修饰符和类型 方法 说明
    void objectMapperAdvice​(com.fasterxml.jackson.databind.ObjectMapper objectMapper, NumberJsonStringFormatProperties properties)
    objectMapper扩展设置
    static void setProperties​(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
    设置ObjectMapper属性
    static void setProperties​(com.fasterxml.jackson.databind.ObjectMapper objectMapper, NumberJsonStringFormatProperties properties)
    设置ObjectMapper属性

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

  • 方法详细资料

    • setProperties

      public static void setProperties​(com.fasterxml.jackson.databind.ObjectMapper objectMapper, NumberJsonStringFormatProperties properties)
      设置ObjectMapper属性
      参数:
      objectMapper - objectMapper
      properties - 数值json格式化配置
    • setProperties

      public static void setProperties​(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
      设置ObjectMapper属性
      参数:
      objectMapper - objectMapper
    • objectMapperAdvice

      @Autowired public void objectMapperAdvice​(com.fasterxml.jackson.databind.ObjectMapper objectMapper, NumberJsonStringFormatProperties properties)
      objectMapper扩展设置
      参数:
      objectMapper - objectMapper
      properties - 数值json格式化配置