@Configuration
public class WebConfig
extends org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
Note: If you add (EnableWebMvc
) annotation, you switch off everything in spring boot.
Constructor and Description |
---|
WebConfig() |
Modifier and Type | Method and Description |
---|---|
void |
addArgumentResolvers(List<org.springframework.web.method.support.HandlerMethodArgumentResolver> argResolvers)
AppGroup argument resolver used in Rest controllers. |
void |
configureContentNegotiation(org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer configurer) |
void |
configurePathMatch(org.springframework.web.servlet.config.annotation.PathMatchConfigurer matcher)
Turn on path variable suffix pattern matching ONLY for suffixes you explicitly register using
configureContentNegotiation(ContentNegotiationConfigurer) . |
addCorsMappings, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
public void configureContentNegotiation(org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer configurer)
configureContentNegotiation
in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
configureContentNegotiation
in class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
public void configurePathMatch(org.springframework.web.servlet.config.annotation.PathMatchConfigurer matcher)
configureContentNegotiation(ContentNegotiationConfigurer)
.configurePathMatch
in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
configurePathMatch
in class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
public void addArgumentResolvers(List<org.springframework.web.method.support.HandlerMethodArgumentResolver> argResolvers)
AppGroup
argument resolver used in Rest controllers.addArgumentResolvers
in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
addArgumentResolvers
in class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
Copyright © 2018 Walmart, Inc.. All rights reserved.