java.lang.Object
org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration
de.hybris.platform.ycommercewebservices.v2.config.WebConfig
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware

@Configuration @ImportResource("WEB-INF/config/v2/springmvc-v2-servlet.xml") public class WebConfig extends org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration
Spring configuration which replace <mvc:annotation-driven> tag. It allows override default RequestMappingHandlerMapping with our own mapping handler
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    configureContentNegotiation(org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer configurer)
     
    protected void
    configureHandlerExceptionResolvers(List<org.springframework.web.servlet.HandlerExceptionResolver> exceptionResolvers)
     
    protected void
    configureMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters)
     
    protected boolean
     
    org.springframework.web.multipart.MultipartResolver
     
    org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping
    requestMappingHandlerMapping(org.springframework.web.accept.ContentNegotiationManager mvcContentNegotiationManager, org.springframework.format.support.FormattingConversionService mvcConversionService, org.springframework.web.servlet.resource.ResourceUrlProvider mvcResourceUrlProvider)
     
    void
    setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
     

    Methods inherited from class org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration

    addArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureDefaultServletHandling, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator, setConfigurers

    Methods inherited from class org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport

    addDefaultHandlerExceptionResolvers, addDefaultHttpMessageConverters, beanNameHandlerMapping, createExceptionHandlerExceptionResolver, createRequestMappingHandlerAdapter, createRequestMappingHandlerMapping, defaultServletHandlerMapping, flashMapManager, getApplicationContext, getArgumentResolvers, getAsyncSupportConfigurer, getConfigurableWebBindingInitializer, getCorsConfigurations, getDefaultMediaTypes, getInterceptors, getMessageConverters, getPathMatchConfigurer, getReturnValueHandlers, getServletContext, handlerExceptionResolver, handlerFunctionAdapter, httpRequestHandlerAdapter, localeResolver, mvcContentNegotiationManager, mvcConversionService, mvcHandlerMappingIntrospector, mvcPathMatcher, mvcPatternParser, mvcResourceUrlProvider, mvcUriComponentsContributor, mvcUrlPathHelper, mvcValidator, mvcViewResolver, requestMappingHandlerAdapter, resourceHandlerMapping, routerFunctionMapping, setServletContext, simpleControllerHandlerAdapter, themeResolver, viewControllerHandlerMapping, viewNameTranslator

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • WebConfig

      public WebConfig()
  • Method Details

    • requestMappingHandlerMapping

      @Bean public org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping requestMappingHandlerMapping(org.springframework.web.accept.ContentNegotiationManager mvcContentNegotiationManager, org.springframework.format.support.FormattingConversionService mvcConversionService, org.springframework.web.servlet.resource.ResourceUrlProvider mvcResourceUrlProvider)
      Overrides:
      requestMappingHandlerMapping in class org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
    • configureMessageConverters

      protected void configureMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters)
      Overrides:
      configureMessageConverters in class org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration
    • configureHandlerExceptionResolvers

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

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Overrides:
      setApplicationContext in class org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
      Throws:
      org.springframework.beans.BeansException
    • configureContentNegotiation

      public void configureContentNegotiation(org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer configurer)
      Overrides:
      configureContentNegotiation in class org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration
    • multipartResolver

      @Bean public org.springframework.web.multipart.MultipartResolver multipartResolver()
    • isLegacyContentNegotiationEnabled

      protected boolean isLegacyContentNegotiationEnabled()