Class 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 Detail

      • objectMapper

        @Qualifier("teslerObjectMapper")
        protected final com.fasterxml.jackson.databind.ObjectMapper objectMapper
    • Constructor Detail

      • APIConfig

        public APIConfig()
    • Method Detail

      • addArgumentResolvers

        public void addArgumentResolvers​(List<org.springframework.web.method.support.HandlerMethodArgumentResolver> argumentResolvers)
        Specified by:
        addArgumentResolvers in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
      • addInterceptors

        public void addInterceptors​(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)
        Specified by:
        addInterceptors in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
      • configureMessageConverters

        public void configureMessageConverters​(List<org.springframework.http.converter.HttpMessageConverter<?>> converters)
        Specified by:
        configureMessageConverters in interface org.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)