类 ApiConfiguration

java.lang.Object
com.citrsw.configuration.ApiConfiguration
所有已实现的接口:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer

@Configuration @ComponentScan("com.citrsw") public class ApiConfiguration extends Object implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
配置类
作者:
李振峰
  • 构造器概要

    构造器
    构造器
    说明
    ApiConfiguration(ApiHandlerInterceptor apiHandlerInterceptor, ApiParamFilter apiParamFilter)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)
    配置拦截器执行顺序
    void
    addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
     
    org.springframework.boot.web.servlet.FilterRegistrationBean<ApiParamFilter>
     

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    从接口继承的方法 org.springframework.web.servlet.config.annotation.WebMvcConfigurer

    addArgumentResolvers, addCorsMappings, addFormatters, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
  • 构造器详细资料

  • 方法详细资料

    • servletRegistrationBean

      @Bean public org.springframework.boot.web.servlet.FilterRegistrationBean<ApiParamFilter> servletRegistrationBean()
    • addResourceHandlers

      public void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
      指定者:
      addResourceHandlers 在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigurer
    • addInterceptors

      public void addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)
      配置拦截器执行顺序
      指定者:
      addInterceptors 在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigurer