Class GsonAutoConfiguration
java.lang.Object
org.springframework.boot.autoconfigure.gson.GsonAutoConfiguration
@AutoConfiguration
@ConditionalOnClass(com.google.gson.Gson.class)
@EnableConfigurationProperties(GsonProperties.class)
public class GsonAutoConfiguration
extends Object
Auto-configuration
for Gson.- Since:
- 1.2.0
- Author:
- David Liu, Ivan Golovko
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.gson.Gson
gson
(com.google.gson.GsonBuilder gsonBuilder) com.google.gson.GsonBuilder
gsonBuilder
(List<GsonBuilderCustomizer> customizers) org.springframework.boot.autoconfigure.gson.GsonAutoConfiguration.StandardGsonBuilderCustomizer
standardGsonBuilderCustomizer
(GsonProperties gsonProperties)
-
Constructor Details
-
GsonAutoConfiguration
public GsonAutoConfiguration()
-
-
Method Details
-
gsonBuilder
@Bean @ConditionalOnMissingBean public com.google.gson.GsonBuilder gsonBuilder(List<GsonBuilderCustomizer> customizers) -
gson
@Bean @ConditionalOnMissingBean public com.google.gson.Gson gson(com.google.gson.GsonBuilder gsonBuilder) -
standardGsonBuilderCustomizer
@Bean public org.springframework.boot.autoconfigure.gson.GsonAutoConfiguration.StandardGsonBuilderCustomizer standardGsonBuilderCustomizer(GsonProperties gsonProperties)
-