Package io.tesler.core.config
Class APIConfig
- java.lang.Object
-
- io.tesler.core.config.APIConfig
-
- All Implemented Interfaces:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@EnableWebMvc @ControllerScan("io.tesler.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 FillLogParametersInterceptor
debugModeInterceptor
protected com.fasterxml.jackson.databind.ObjectMapper
objectMapper
-
Constructor Summary
Constructors Constructor Description APIConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addArgumentResolvers(List<org.springframework.web.method.support.HandlerMethodArgumentResolver> argumentResolvers)
void
addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)
void
configureMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters)
org.springframework.web.servlet.LocaleResolver
localeResolver(CoreSessionService coreSessionService, LocaleService localeService)
org.springframework.web.multipart.MultipartResolver
multipartResolver()
-
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, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
-
-
-
-
Field Detail
-
debugModeInterceptor
protected final FillLogParametersInterceptor debugModeInterceptor
-
objectMapper
@Qualifier("teslerObjectMapper") protected final com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Method Detail
-
addArgumentResolvers
public void addArgumentResolvers(List<org.springframework.web.method.support.HandlerMethodArgumentResolver> argumentResolvers)
- Specified by:
addArgumentResolvers
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
addInterceptors
public void addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)
- Specified by:
addInterceptors
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
configureMessageConverters
public void configureMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters)
- Specified by:
configureMessageConverters
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
multipartResolver
@Bean public org.springframework.web.multipart.MultipartResolver multipartResolver()
-
localeResolver
@Bean(name="localeResolver") public org.springframework.web.servlet.LocaleResolver localeResolver(CoreSessionService coreSessionService, LocaleService localeService)
-
-