@EnableWebMvc
@Configuration
@ComponentScan(basePackages="org.jfantasy.*.rest",
useDefaultFilters=false,
includeFilters=)
@Order(value=-2147483616)
public class WebMvcConfig
extends java.lang.Object
implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
| Modifier and Type | Field and Description |
|---|---|
static int |
ORDER |
| Constructor and Description |
|---|
WebMvcConfig(org.springframework.context.ApplicationContext applicationContext,
com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.boot.web.servlet.FilterRegistrationBean |
actionContextFilter() |
void |
addArgumentResolvers(java.util.List<org.springframework.web.method.support.HandlerMethodArgumentResolver> argumentResolvers) |
void |
addCorsMappings(org.springframework.web.servlet.config.annotation.CorsRegistry registry) |
void |
addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) |
void |
addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry) |
void |
configureMessageConverters(java.util.List<org.springframework.http.converter.HttpMessageConverter<?>> converters) |
org.springframework.boot.web.servlet.FilterRegistrationBean |
conversionCharacterEncodingFilter() |
org.springframework.validation.Validator |
getValidator() |
void |
initObjectMapper() |
org.springframework.web.servlet.LocaleResolver |
localeResolver() |
javax.servlet.MultipartConfigElement |
multipartConfigElement() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddFormatters, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolverpublic static final int ORDER
@Autowired
public WebMvcConfig(org.springframework.context.ApplicationContext applicationContext,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
addResourceHandlers in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer@Bean public org.springframework.web.servlet.LocaleResolver localeResolver()
public void addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)
addInterceptors in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer@Bean public javax.servlet.MultipartConfigElement multipartConfigElement()
@PostConstruct public void initObjectMapper()
public void configureMessageConverters(java.util.List<org.springframework.http.converter.HttpMessageConverter<?>> converters)
configureMessageConverters in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurerpublic void addArgumentResolvers(java.util.List<org.springframework.web.method.support.HandlerMethodArgumentResolver> argumentResolvers)
addArgumentResolvers in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurerpublic org.springframework.validation.Validator getValidator()
getValidator in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurerpublic void addCorsMappings(org.springframework.web.servlet.config.annotation.CorsRegistry registry)
addCorsMappings in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer@Bean public org.springframework.boot.web.servlet.FilterRegistrationBean conversionCharacterEncodingFilter()
@Bean public org.springframework.boot.web.servlet.FilterRegistrationBean actionContextFilter()