Class WebMvcAutoConfiguration.WebMvcAutoConfigurationAdapter

    • Constructor Detail

      • WebMvcAutoConfigurationAdapter

        public WebMvcAutoConfigurationAdapter​(ResourceProperties resourceProperties,
                                              WebMvcProperties mvcProperties,
                                              org.springframework.beans.factory.ListableBeanFactory beanFactory,
                                              @Lazy
                                              HttpMessageConverters messageConverters,
                                              org.springframework.beans.factory.ObjectProvider<org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration.ResourceHandlerRegistrationCustomizer> resourceHandlerRegistrationCustomizerProvider)
    • Method Detail

      • configureMessageConverters

        public void configureMessageConverters​(List<org.springframework.http.converter.HttpMessageConverter<?>> converters)
        Specified by:
        configureMessageConverters in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
        Overrides:
        configureMessageConverters in class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
      • configureAsyncSupport

        public void configureAsyncSupport​(org.springframework.web.servlet.config.annotation.AsyncSupportConfigurer configurer)
        Specified by:
        configureAsyncSupport in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
        Overrides:
        configureAsyncSupport in class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
      • configureContentNegotiation

        public void configureContentNegotiation​(org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer configurer)
        Specified by:
        configureContentNegotiation in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
        Overrides:
        configureContentNegotiation in class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
      • viewResolver

        @Bean
        @ConditionalOnBean(org.springframework.web.servlet.ViewResolver.class)
        @ConditionalOnMissingBean(name="viewResolver",
                                  value=org.springframework.web.servlet.view.ContentNegotiatingViewResolver.class)
        public org.springframework.web.servlet.view.ContentNegotiatingViewResolver viewResolver​(org.springframework.beans.factory.BeanFactory beanFactory)
      • getMessageCodesResolver

        public org.springframework.validation.MessageCodesResolver getMessageCodesResolver()
        Specified by:
        getMessageCodesResolver in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
        Overrides:
        getMessageCodesResolver in class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
      • addFormatters

        public void addFormatters​(org.springframework.format.FormatterRegistry registry)
        Specified by:
        addFormatters in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
        Overrides:
        addFormatters in class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
      • addResourceHandlers

        public void addResourceHandlers​(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
        Specified by:
        addResourceHandlers in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
        Overrides:
        addResourceHandlers in class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
      • requestContextFilter

        @Bean
        @ConditionalOnMissingBean({org.springframework.web.context.request.RequestContextListener.class,org.springframework.web.filter.RequestContextFilter.class})
        public static org.springframework.web.filter.RequestContextFilter requestContextFilter()