Class CommerceBaseWebConfig
java.lang.Object
org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration
de.hybris.platform.webservicescommons.config.CommerceBaseWebConfig
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.web.context.ServletContextAware
- Direct Known Subclasses:
WebConfig
public class CommerceBaseWebConfig
extends org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration
Base class for Commerce WebMvc Configuration. Overriding
Bean of type HandlerExceptionResolver
to skip creation of it because the resolvers are configured already through xml configuration by each webservices
extension. Otherwise, the customized resolvers will be hidden by this resolver because the order is set as 0 by
WebMvcConfigurationSupport.handlerExceptionResolver(org.springframework.web.accept.ContentNegotiationManager).
Extends from DelegatingWebMvcConfiguration directly and control what you want to configure if this is
not true for your extension.- Since:
- 2211
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.web.servlet.HandlerExceptionResolverhandlerExceptionResolver(org.springframework.web.accept.ContentNegotiationManager contentNegotiationManager) Skip creatingHandlerExceptionResolverbean.Methods inherited from class org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration
addArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator, setConfigurersMethods 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, handlerFunctionAdapter, httpRequestHandlerAdapter, localeResolver, mvcContentNegotiationManager, mvcConversionService, mvcHandlerMappingIntrospector, mvcPathMatcher, mvcPatternParser, mvcResourceUrlProvider, mvcUriComponentsContributor, mvcUrlPathHelper, mvcValidator, mvcViewResolver, requestMappingHandlerAdapter, requestMappingHandlerMapping, resourceHandlerMapping, routerFunctionMapping, setApplicationContext, setServletContext, simpleControllerHandlerAdapter, themeResolver, viewControllerHandlerMapping, viewNameTranslator
-
Constructor Details
-
CommerceBaseWebConfig
public CommerceBaseWebConfig()
-
-
Method Details
-
handlerExceptionResolver
@Bean public org.springframework.web.servlet.HandlerExceptionResolver handlerExceptionResolver(@Qualifier("mvcContentNegotiationManager") org.springframework.web.accept.ContentNegotiationManager contentNegotiationManager) Skip creatingHandlerExceptionResolverbean. SeeCommerceBaseWebConfig.- Overrides:
handlerExceptionResolverin classorg.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport- Parameters:
contentNegotiationManager-- Returns:
- null
-