类 WebMvcAutoconfigure.MvcAutoconfigure
java.lang.Object
net.guerlab.cloud.web.webmvc.autoconfigure.WebMvcAutoconfigure.MvcAutoconfigure
- 所有已实现的接口:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
- 封闭类:
- WebMvcAutoconfigure
@Configuration
@ConditionalOnClass(org.springframework.web.servlet.config.annotation.WebMvcConfigurer.class)
public static class WebMvcAutoconfigure.MvcAutoconfigure
extends Object
implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
webmvc自动配置.
- 作者:
- guer
-
构造器概要
构造器构造器说明MvcAutoconfigure(com.fasterxml.jackson.databind.ObjectMapper objectMapper, org.springframework.web.servlet.i18n.LocaleChangeInterceptor localeChangeInterceptor) 初始化webmvc自动配置. -
方法概要
修饰符和类型方法说明voidaddInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) voidconfigureMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.springframework.web.servlet.config.annotation.WebMvcConfigurer
addArgumentResolvers, addCorsMappings, addFormatters, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
-
构造器详细资料
-
MvcAutoconfigure
public MvcAutoconfigure(com.fasterxml.jackson.databind.ObjectMapper objectMapper, org.springframework.web.servlet.i18n.LocaleChangeInterceptor localeChangeInterceptor) 初始化webmvc自动配置.- 参数:
objectMapper- objectMapperlocaleChangeInterceptor- localeChangeInterceptor
-
-
方法详细资料
-
addInterceptors
public void addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) - 指定者:
addInterceptors在接口中org.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
configureMessageConverters
public void configureMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters) - 指定者:
configureMessageConverters在接口中org.springframework.web.servlet.config.annotation.WebMvcConfigurer
-