类 WebMvcConfig
- java.lang.Object
-
- ai.yue.library.web.config.WebMvcConfig
-
- 所有已实现的接口:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@Configuration public class WebMvcConfig extends Object implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
- 从以下版本开始:
- 2020年4月5日
- 作者:
- ylyue
-
-
构造器概要
构造器 构造器 说明 WebMvcConfig()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaddArgumentResolvers(List<org.springframework.web.method.support.HandlerMethodArgumentResolver> resolvers)添加自定义方法参数解析器voidextendMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters)扩展HTTP消息转换器做Json解析处理-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.springframework.web.servlet.config.annotation.WebMvcConfigurer
addCorsMappings, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, getMessageCodesResolver, getValidator
-
-
-
-
方法详细资料
-
extendMessageConverters
public void extendMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters)
扩展HTTP消息转换器做Json解析处理- 指定者:
extendMessageConverters在接口中org.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
addArgumentResolvers
public void addArgumentResolvers(List<org.springframework.web.method.support.HandlerMethodArgumentResolver> resolvers)
添加自定义方法参数解析器- 指定者:
addArgumentResolvers在接口中org.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
-