@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, getValidatorpublic void configureContentNegotiation(org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer configurer)
configureContentNegotiation in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurerconfigureContentNegotiation in class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapterpublic void configurePathMatch(org.springframework.web.servlet.config.annotation.PathMatchConfigurer matcher)
configureContentNegotiation(ContentNegotiationConfigurer).configurePathMatch in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurerconfigurePathMatch in class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapterpublic 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.WebMvcConfigureraddArgumentResolvers in class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapterCopyright © 2018 Walmart, Inc.. All rights reserved.