Package org.cxbox.core.config
Class JacksonConfig
java.lang.Object
org.cxbox.core.config.JacksonConfig
@EnableConfigurationProperties(WidgetFieldsIdResolverProperties.class)
public class JacksonConfig
extends Object
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.ObjectMappercxboxObjectMapper(com.fasterxml.jackson.databind.cfg.HandlerInstantiator handlerInstantiator, Optional<DictionaryProvider> dictionaryProvider) org.springframework.web.servlet.config.annotation.WebMvcConfigurerInspired with org.springframework.core.convert.support.StringToEnumConverterFactory to force Dictionary be null instead of having null/"" key, when using in Rest params and so oncom.fasterxml.jackson.databind.cfg.HandlerInstantiatorhandlerInstantiator(org.springframework.context.ApplicationContext context)
-
Constructor Details
-
JacksonConfig
public JacksonConfig()
-
-
Method Details
-
cxboxObjectMapper
@Bean("cxboxObjectMapper") public com.fasterxml.jackson.databind.ObjectMapper cxboxObjectMapper(com.fasterxml.jackson.databind.cfg.HandlerInstantiator handlerInstantiator, Optional<DictionaryProvider> dictionaryProvider) -
handlerInstantiator
@Bean public com.fasterxml.jackson.databind.cfg.HandlerInstantiator handlerInstantiator(org.springframework.context.ApplicationContext context) -
dictionaryWebMvcConfigurer
@Bean public org.springframework.web.servlet.config.annotation.WebMvcConfigurer dictionaryWebMvcConfigurer()Inspired with org.springframework.core.convert.support.StringToEnumConverterFactory to force Dictionary be null instead of having null/"" key, when using in Rest params and so on
-