Class WebMvcConfig

  • All Implemented Interfaces:
    org.springframework.web.servlet.config.annotation.WebMvcConfigurer

    @Configuration
    public class WebMvcConfig
    extends Object
    implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
    • Constructor Summary

      Constructors 
      Constructor Description
      WebMvcConfig()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addFormatters​(org.springframework.format.FormatterRegistry registry)  
      void addViewControllers​(org.springframework.web.servlet.config.annotation.ViewControllerRegistry registry)  
      void configureMessageConverters​(List<org.springframework.http.converter.HttpMessageConverter<?>> converters)  
      static com.fasterxml.jackson.databind.ObjectMapper newConfiguredObjectMapper()  
      com.fasterxml.jackson.databind.ObjectMapper objectMapper()  
      • Methods inherited from interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer

        addArgumentResolvers, addCorsMappings, addInterceptors, addResourceHandlers, addReturnValueHandlers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
    • Constructor Detail

      • WebMvcConfig

        public WebMvcConfig()
    • Method Detail

      • addViewControllers

        public void addViewControllers​(org.springframework.web.servlet.config.annotation.ViewControllerRegistry registry)
        Specified by:
        addViewControllers in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
      • addFormatters

        public void addFormatters​(org.springframework.format.FormatterRegistry registry)
        Specified by:
        addFormatters 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
      • objectMapper

        @Bean
        public com.fasterxml.jackson.databind.ObjectMapper objectMapper()
      • newConfiguredObjectMapper

        public static com.fasterxml.jackson.databind.ObjectMapper newConfiguredObjectMapper()