Class GsonProperties
java.lang.Object
org.springframework.boot.autoconfigure.gson.GsonProperties
Configuration properties to configure
Gson
.- Since:
- 2.0.0
- Author:
- Ivan Golovko
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.gson.FieldNamingPolicy
Deprecated, for removal: This API element is subject to removal in a future version.com.google.gson.LongSerializationPolicy
com.google.gson.Strictness
void
setDateFormat
(String dateFormat) void
setDisableHtmlEscaping
(Boolean disableHtmlEscaping) void
setDisableInnerClassSerialization
(Boolean disableInnerClassSerialization) void
setEnableComplexMapKeySerialization
(Boolean enableComplexMapKeySerialization) void
setExcludeFieldsWithoutExposeAnnotation
(Boolean excludeFieldsWithoutExposeAnnotation) void
setFieldNamingPolicy
(com.google.gson.FieldNamingPolicy fieldNamingPolicy) void
setGenerateNonExecutableJson
(Boolean generateNonExecutableJson) void
setLenient
(Boolean lenient) void
setLongSerializationPolicy
(com.google.gson.LongSerializationPolicy longSerializationPolicy) void
setPrettyPrinting
(Boolean prettyPrinting) void
setSerializeNulls
(Boolean serializeNulls) void
setStrictness
(com.google.gson.Strictness strictness)
-
Constructor Details
-
GsonProperties
public GsonProperties()
-
-
Method Details
-
getGenerateNonExecutableJson
-
setGenerateNonExecutableJson
-
getExcludeFieldsWithoutExposeAnnotation
-
setExcludeFieldsWithoutExposeAnnotation
-
getSerializeNulls
-
setSerializeNulls
-
getEnableComplexMapKeySerialization
-
setEnableComplexMapKeySerialization
-
getDisableInnerClassSerialization
-
setDisableInnerClassSerialization
-
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
-
setPrettyPrinting
-
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
-
getDisableHtmlEscaping
-
setDisableHtmlEscaping
-
getDateFormat
-
setDateFormat
-