Class SpringWebMvcConfig

java.lang.Object
cn.coufran.springboot.starter.auth.config.SpringWebMvcConfig
All Implemented Interfaces:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer

@Configuration public class SpringWebMvcConfig extends Object implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
Spring MVC配置
Since:
1.0.0
Version:
1.0.0
Author:
Coufran
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)
    添加权限拦截器
    void
    注入权限拦截器

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer

    addArgumentResolvers, addCorsMappings, addErrorResponseInterceptors, addFormatters, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
  • Constructor Details

    • SpringWebMvcConfig

      public SpringWebMvcConfig()
  • Method Details

    • setAuthInterceptor

      public void setAuthInterceptor(AuthInterceptor authInterceptor)
      注入权限拦截器
      Parameters:
      authInterceptor - 权限拦截器
    • addInterceptors

      public void addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)
      添加权限拦截器
      Specified by:
      addInterceptors in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
      Parameters:
      registry - 权限拦截器