Class GsonProperties

java.lang.Object
org.springframework.boot.autoconfigure.gson.GsonProperties

@ConfigurationProperties(prefix="spring.gson") public class GsonProperties extends Object
Configuration properties to configure Gson.
Since:
2.0.0
Author:
Ivan Golovko
  • Constructor Details

    • GsonProperties

      public GsonProperties()
  • Method Details

    • getGenerateNonExecutableJson

      public Boolean getGenerateNonExecutableJson()
    • setGenerateNonExecutableJson

      public void setGenerateNonExecutableJson(Boolean generateNonExecutableJson)
    • getExcludeFieldsWithoutExposeAnnotation

      public Boolean getExcludeFieldsWithoutExposeAnnotation()
    • setExcludeFieldsWithoutExposeAnnotation

      public void setExcludeFieldsWithoutExposeAnnotation(Boolean excludeFieldsWithoutExposeAnnotation)
    • getSerializeNulls

      public Boolean getSerializeNulls()
    • setSerializeNulls

      public void setSerializeNulls(Boolean serializeNulls)
    • getEnableComplexMapKeySerialization

      public Boolean getEnableComplexMapKeySerialization()
    • setEnableComplexMapKeySerialization

      public void setEnableComplexMapKeySerialization(Boolean enableComplexMapKeySerialization)
    • getDisableInnerClassSerialization

      public Boolean getDisableInnerClassSerialization()
    • setDisableInnerClassSerialization

      public void setDisableInnerClassSerialization(Boolean disableInnerClassSerialization)
    • getLongSerializationPolicy

      public com.google.gson.LongSerializationPolicy getLongSerializationPolicy()
    • setLongSerializationPolicy

      public void setLongSerializationPolicy(com.google.gson.LongSerializationPolicy longSerializationPolicy)
    • getFieldNamingPolicy

      public com.google.gson.FieldNamingPolicy getFieldNamingPolicy()
    • setFieldNamingPolicy

      public void setFieldNamingPolicy(com.google.gson.FieldNamingPolicy fieldNamingPolicy)
    • getPrettyPrinting

      public Boolean getPrettyPrinting()
    • setPrettyPrinting

      public void setPrettyPrinting(Boolean prettyPrinting)
    • getLenient

      public Boolean getLenient()
    • setLenient

      public void setLenient(Boolean lenient)
    • getDisableHtmlEscaping

      public Boolean getDisableHtmlEscaping()
    • setDisableHtmlEscaping

      public void setDisableHtmlEscaping(Boolean disableHtmlEscaping)
    • getDateFormat

      public String getDateFormat()
    • setDateFormat

      public void setDateFormat(String dateFormat)