程序包 cn.hamm.airpower
类 AbstractWebConfig
java.lang.Object
cn.hamm.airpower.AbstractWebConfig
- 所有已实现的接口:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@Configuration
public abstract class AbstractWebConfig
extends Object
implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
全局配置
- 作者:
- Hamm.cn
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明final voidaddArgumentResolvers(@NotNull List<org.springframework.web.method.support.HandlerMethodArgumentResolver> resolvers) voidaddCustomInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) 添加自定义拦截器final voidaddInterceptors(@NotNull org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) org.springframework.boot.web.servlet.FilterRegistrationBean<RequestCacheFilter>abstract AbstractRequestInterceptor获取一个拦截器实例从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.springframework.web.servlet.config.annotation.WebMvcConfigurer
addCorsMappings, addFormatters, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
-
构造器详细资料
-
AbstractWebConfig
public AbstractWebConfig()
-
-
方法详细资料
-
getAccessInterceptor
获取一个拦截器实例
- 返回:
- 拦截器实例
-
addInterceptors
public final void addInterceptors(@NotNull @NotNull org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) - 指定者:
addInterceptors在接口中org.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
addArgumentResolvers
public final void addArgumentResolvers(@NotNull @NotNull List<org.springframework.web.method.support.HandlerMethodArgumentResolver> resolvers) - 指定者:
addArgumentResolvers在接口中org.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
addCustomInterceptors
public void addCustomInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) 添加自定义拦截器
- 参数:
registry- 拦截器管理器
-
bodyCachingFilterRegistration
@Bean public org.springframework.boot.web.servlet.FilterRegistrationBean<RequestCacheFilter> bodyCachingFilterRegistration()
-