Package cn.sinozg.applet.common.config
Class SystemWebConfig
java.lang.Object
cn.sinozg.applet.common.config.SystemWebConfig
- All Implemented Interfaces:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@Configuration
public class SystemWebConfig
extends Object
implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
鉴权 全局拦截器
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate cn.sinozg.applet.common.properties.AppValueprivate cn.sinozg.applet.common.service.FrameworkAuthServiceprivate cn.sinozg.applet.common.service.CipherServiceprivate cn.sinozg.applet.common.service.FrameworkInitDataServiceprivate final org.slf4j.Loggerprivate ParamsInterceptorprivate cn.sinozg.applet.common.service.FrameworkTenantService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInterceptors(@NotNull org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) org.springframework.boot.web.servlet.FilterRegistrationBean<WrapperFilter>http请求 包装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
-
Field Details
-
app
private cn.sinozg.applet.common.properties.AppValue app -
cipherService
private cn.sinozg.applet.common.service.CipherService cipherService -
paramsInterceptor
-
initDataService
private cn.sinozg.applet.common.service.FrameworkInitDataService initDataService -
authService
private cn.sinozg.applet.common.service.FrameworkAuthService authService -
tenantService
private cn.sinozg.applet.common.service.FrameworkTenantService tenantService -
log
private final org.slf4j.Logger log
-
-
Constructor Details
-
SystemWebConfig
public SystemWebConfig()
-
-
Method Details
-
addInterceptors
public void addInterceptors(@NotNull @NotNull org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) - Specified by:
addInterceptorsin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
registrationBean
@Bean public org.springframework.boot.web.servlet.FilterRegistrationBean<WrapperFilter> registrationBean()http请求 包装- Returns:
- 过滤器
-