程序包 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 void
    addArgumentResolvers(@NotNull List<org.springframework.web.method.support.HandlerMethodArgumentResolver> resolvers)
     
    void
    addCustomInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)
    添加自定义拦截器
    final void
    addInterceptors(@NotNull org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)
     
    org.springframework.boot.web.servlet.FilterRegistrationBean<RequestCacheFilter>
     
    获取一个拦截器实例

    从类继承的方法 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

      @Bean public abstract AbstractRequestInterceptor 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()