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
Fields Modifier and Type Field Description protected com.fasterxml.jackson.databind.ObjectMapperobjectMapper
-
Constructor Summary
Constructors Constructor Description APIConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddArgumentResolvers(List<org.springframework.web.method.support.HandlerMethodArgumentResolver> argumentResolvers)voidconfigureMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters)org.springframework.web.servlet.LocaleResolverlocaleResolver(org.cxbox.api.service.session.CoreSessionService coreSessionService, org.cxbox.api.service.LocaleService localeService)org.springframework.web.multipart.MultipartResolvermultipartResolver()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods 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
-
-
-
-
Method Detail
-
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()
-
localeResolver
@Bean(name="localeResolver") public org.springframework.web.servlet.LocaleResolver localeResolver(org.cxbox.api.service.session.CoreSessionService coreSessionService, org.cxbox.api.service.LocaleService localeService)
-
-