类的使用
org.springframework.web.servlet.config.annotation.InterceptorRegistration
使用InterceptorRegistration的程序包 程序包 说明 org.springframework.web.servlet.config.annotation Annotation-based setup for Spring MVC.org.springframework.web.servlet.config.annotation中InterceptorRegistration的使用
返回InterceptorRegistration的org.springframework.web.servlet.config.annotation中的方法 修饰符和类型 方法 说明 InterceptorRegistration
InterceptorRegistry. addInterceptor(HandlerInterceptor interceptor)
Adds the providedHandlerInterceptor
.InterceptorRegistration
InterceptorRegistration. addPathPatterns(String... patterns)
Add URL patterns to which the registered interceptor should apply to.InterceptorRegistration
InterceptorRegistration. addPathPatterns(List<String> patterns)
List-based variant ofaddPathPatterns(String...)
.InterceptorRegistration
InterceptorRegistry. addWebRequestInterceptor(WebRequestInterceptor interceptor)
Adds the providedWebRequestInterceptor
.InterceptorRegistration
InterceptorRegistration. excludePathPatterns(String... patterns)
Add URL patterns to which the registered interceptor should not apply to.InterceptorRegistration
InterceptorRegistration. excludePathPatterns(List<String> patterns)
List-based variant ofexcludePathPatterns(String...)
.InterceptorRegistration
InterceptorRegistration. order(int order)
Specify an order position to be used.InterceptorRegistration
InterceptorRegistration. pathMatcher(PathMatcher pathMatcher)
A PathMatcher implementation to use with this interceptor.