Package org.cxbox.core.config
Class APIConfig
java.lang.Object
org.cxbox.core.config.APIConfig
- All Implemented Interfaces:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@EnableWebMvc
@ControllerScan("org.cxbox.core.controller")
@EnableConfigurationProperties(APIProperties.class)
public class APIConfig
extends Object
implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.fasterxml.jackson.databind.ObjectMapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddArgumentResolvers(List<org.springframework.web.method.support.HandlerMethodArgumentResolver> argumentResolvers) voidconfigureMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters) org.springframework.web.multipart.MultipartResolverMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
addCorsMappings, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
-
Field Details
-
objectMapper
@Qualifier("cxboxObjectMapper") protected final com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Constructor Details
-
APIConfig
public APIConfig()
-
-
Method Details
-
addArgumentResolvers
public void addArgumentResolvers(List<org.springframework.web.method.support.HandlerMethodArgumentResolver> argumentResolvers) - Specified by:
addArgumentResolversin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
configureMessageConverters
public void configureMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters) - Specified by:
configureMessageConvertersin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
multipartResolver
@Bean @ConditionalOnProperty(value="cxbox.bean.multipart-resolver.enabled", matchIfMissing=true) public org.springframework.web.multipart.MultipartResolver multipartResolver()
-