Class WebMvcAutoConfiguration.EnableWebMvcConfiguration

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware
    Enclosing class:
    WebMvcAutoConfiguration

    @Configuration
    public static class WebMvcAutoConfiguration.EnableWebMvcConfiguration
    extends org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration
    Configuration equivalent to @EnableWebMvc.
    • Constructor Summary

      Constructors 
      ConstructorDescription
      EnableWebMvcConfiguration​(org.springframework.beans.factory.ObjectProvider<WebMvcProperties> mvcPropertiesProvider, org.springframework.beans.factory.ObjectProvider<WebMvcRegistrations> mvcRegistrationsProvider, org.springframework.beans.factory.ListableBeanFactory beanFactory) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      protected voidconfigureHandlerExceptionResolvers​(List<org.springframework.web.servlet.HandlerExceptionResolver> exceptionResolvers) 
      protected org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolvercreateExceptionHandlerExceptionResolver() 
      protected org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdaptercreateRequestMappingHandlerAdapter() 
      protected org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMappingcreateRequestMappingHandlerMapping() 
      protected org.springframework.web.bind.support.ConfigurableWebBindingInitializergetConfigurableWebBindingInitializer() 
      org.springframework.web.accept.ContentNegotiationManagermvcContentNegotiationManager() 
      org.springframework.format.support.FormattingConversionServicemvcConversionService() 
      org.springframework.validation.ValidatormvcValidator() 
      org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapterrequestMappingHandlerAdapter() 
      org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMappingrequestMappingHandlerMapping() 
      • Methods inherited from class org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration

        addArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator, setConfigurers
      • Methods inherited from class org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport

        addDefaultHandlerExceptionResolvers, addDefaultHttpMessageConverters, beanNameHandlerMapping, defaultServletHandlerMapping, getApplicationContext, getArgumentResolvers, getCorsConfigurations, getDefaultMediaTypes, getInterceptors, getMessageConverters, getPathMatchConfigurer, getReturnValueHandlers, getServletContext, handlerExceptionResolver, httpRequestHandlerAdapter, mvcHandlerMappingIntrospector, mvcPathMatcher, mvcResourceUrlProvider, mvcUriComponentsContributor, mvcUrlPathHelper, mvcViewResolver, resourceHandlerMapping, setApplicationContext, setServletContext, simpleControllerHandlerAdapter, viewControllerHandlerMapping
    • Constructor Detail

      • EnableWebMvcConfiguration

        public EnableWebMvcConfiguration​(org.springframework.beans.factory.ObjectProvider<WebMvcProperties> mvcPropertiesProvider,
                                         org.springframework.beans.factory.ObjectProvider<WebMvcRegistrations> mvcRegistrationsProvider,
                                         org.springframework.beans.factory.ListableBeanFactory beanFactory)
    • Method Detail

      • requestMappingHandlerAdapter

        @Bean
        public org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter requestMappingHandlerAdapter()
        Overrides:
        requestMappingHandlerAdapter in class org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
      • createRequestMappingHandlerAdapter

        protected org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter createRequestMappingHandlerAdapter()
        Overrides:
        createRequestMappingHandlerAdapter in class org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
      • requestMappingHandlerMapping

        @Bean
        @Primary
        public org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping requestMappingHandlerMapping()
        Overrides:
        requestMappingHandlerMapping in class org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
      • mvcConversionService

        @Bean
        public org.springframework.format.support.FormattingConversionService mvcConversionService()
        Overrides:
        mvcConversionService in class org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
      • mvcValidator

        @Bean
        public org.springframework.validation.Validator mvcValidator()
        Overrides:
        mvcValidator in class org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
      • createRequestMappingHandlerMapping

        protected org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping createRequestMappingHandlerMapping()
        Overrides:
        createRequestMappingHandlerMapping in class org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
      • getConfigurableWebBindingInitializer

        protected org.springframework.web.bind.support.ConfigurableWebBindingInitializer getConfigurableWebBindingInitializer()
        Overrides:
        getConfigurableWebBindingInitializer in class org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
      • createExceptionHandlerExceptionResolver

        protected org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver createExceptionHandlerExceptionResolver()
        Overrides:
        createExceptionHandlerExceptionResolver in class org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
      • configureHandlerExceptionResolvers

        protected void configureHandlerExceptionResolvers​(List<org.springframework.web.servlet.HandlerExceptionResolver> exceptionResolvers)
        Overrides:
        configureHandlerExceptionResolvers in class org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration
      • mvcContentNegotiationManager

        @Bean
        public org.springframework.web.accept.ContentNegotiationManager mvcContentNegotiationManager()
        Overrides:
        mvcContentNegotiationManager in class org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport