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 -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) 添加权限拦截器voidsetAuthInterceptor(AuthInterceptor authInterceptor) 注入权限拦截器Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
注入权限拦截器- Parameters:
authInterceptor- 权限拦截器
-
addInterceptors
public void addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) 添加权限拦截器- Specified by:
addInterceptorsin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer- Parameters:
registry- 权限拦截器
-