Class WebConfig
java.lang.Object
org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
de.hybris.platform.ycommercewebservices.v2.config.WebConfig
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.web.context.ServletContextAware
@EnableSwagger2
@Configuration
@ImportResource("WEB-INF/config/v2/springmvc-v2-servlet.xml")
public class WebConfig
extends org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
Spring configuration which replace <mvc:annotation-driven> tag. It allows override default
RequestMappingHandlerMapping with our own mapping handler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionspringfox.documentation.spring.web.plugins.Docketprotected springfox.documentation.service.OAuthvoidconfigureContentNegotiation(org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer configurer) protected voidconfigureHandlerExceptionResolvers(List<org.springframework.web.servlet.HandlerExceptionResolver> exceptionResolvers) protected voidconfigureMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters) protected booleanprotected springfox.documentation.service.OAuthorg.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMappingrequestMappingHandlerMapping(org.springframework.web.accept.ContentNegotiationManager mvcContentNegotiationManager, org.springframework.format.support.FormattingConversionService mvcConversionService, org.springframework.web.servlet.resource.ResourceUrlProvider mvcResourceUrlProvider) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) springfox.documentation.spring.web.json.JacksonModuleRegistrarMethods inherited from class org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
addArgumentResolvers, addCorsMappings, addDefaultHandlerExceptionResolvers, addDefaultHttpMessageConverters, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, beanNameHandlerMapping, configureAsyncSupport, configureDefaultServletHandling, configurePathMatch, configureViewResolvers, createExceptionHandlerExceptionResolver, createRequestMappingHandlerAdapter, createRequestMappingHandlerMapping, defaultServletHandlerMapping, extendHandlerExceptionResolvers, extendMessageConverters, flashMapManager, getApplicationContext, getArgumentResolvers, getAsyncSupportConfigurer, getConfigurableWebBindingInitializer, getCorsConfigurations, getDefaultMediaTypes, getInterceptors, getMessageCodesResolver, getMessageConverters, getPathMatchConfigurer, getReturnValueHandlers, getServletContext, getValidator, handlerExceptionResolver, handlerFunctionAdapter, httpRequestHandlerAdapter, localeResolver, mvcContentNegotiationManager, mvcConversionService, mvcHandlerMappingIntrospector, mvcPathMatcher, mvcPatternParser, mvcResourceUrlProvider, mvcUriComponentsContributor, mvcUrlPathHelper, mvcValidator, mvcViewResolver, requestMappingHandlerAdapter, resourceHandlerMapping, routerFunctionMapping, setServletContext, simpleControllerHandlerAdapter, themeResolver, viewControllerHandlerMapping, viewNameTranslator
-
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:
requestMappingHandlerMappingin classorg.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
-
swaggerJacksonModuleRegistrar
@Bean public springfox.documentation.spring.web.json.JacksonModuleRegistrar swaggerJacksonModuleRegistrar() -
configureMessageConverters
protected void configureMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters) - Overrides:
configureMessageConvertersin classorg.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
-
configureHandlerExceptionResolvers
protected void configureHandlerExceptionResolvers(List<org.springframework.web.servlet.HandlerExceptionResolver> exceptionResolvers) - Overrides:
configureHandlerExceptionResolversin classorg.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Overrides:
setApplicationContextin classorg.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport- Throws:
org.springframework.beans.BeansException
-
configureContentNegotiation
public void configureContentNegotiation(org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer configurer) - Overrides:
configureContentNegotiationin classorg.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
-
apiDocumentation
@Bean public springfox.documentation.spring.web.plugins.Docket apiDocumentation() -
isLegacyContentNegotiationEnabled
protected boolean isLegacyContentNegotiationEnabled() -
passwordFlow
protected springfox.documentation.service.OAuth passwordFlow() -
clientCredentialFlow
protected springfox.documentation.service.OAuth clientCredentialFlow()
-