@Configuration public class ConnectorConfiguration extends Object implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
| Constructor and Description |
|---|
ConnectorConfiguration(SecurityInterceptor interceptor) |
| Modifier and Type | Method and Description |
|---|---|
void |
addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry interceptorRegistry)
配置一个拦截器,这里会拦截所有请求
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddArgumentResolvers, addCorsMappings, addFormatters, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator@Autowired public ConnectorConfiguration(SecurityInterceptor interceptor)
public void addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry interceptorRegistry)
addInterceptors in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurerinterceptorRegistry - 配置拦截器Copyright © 2022. All rights reserved.