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)
    • getStrictness

      public com.google.gson.Strictness getStrictness()
    • setStrictness

      public void setStrictness(com.google.gson.Strictness strictness)
    • getLenient

      @Deprecated(since="3.4.0", forRemoval=true) @DeprecatedConfigurationProperty(replacement="spring.gson.strictness", since="3.4.0") public Boolean getLenient()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • 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)