クラスの使用
org.springframework.web.servlet.config.annotation.InterceptorRegistration
org.springframework.web.servlet.config.annotation 内の InterceptorRegistration 使用
修飾子と型メソッド説明InterceptorRegistry.addInterceptor
(HandlerInterceptor interceptor) 提供されたHandlerInterceptor
を追加します。InterceptorRegistration.addPathPatterns
(StringSE... patterns) インターセプターを含める必要がある URL のパターンを追加します。InterceptorRegistration.addPathPatterns
(ListSE<StringSE> patterns) addPathPatterns(String...)
のリストベースのバリアント。InterceptorRegistry.addWebRequestInterceptor
(WebRequestInterceptor interceptor) 提供されたWebRequestInterceptor
を追加します。InterceptorRegistration.excludePathPatterns
(StringSE... patterns) インターセプターを除外する必要がある URL のパターンを追加します。InterceptorRegistration.excludePathPatterns
(ListSE<StringSE> patterns) excludePathPatterns(String...)
のリストベースのバリアント。InterceptorRegistration.order
(int order) 使用するオーダー位置を指定します。InterceptorRegistration.pathMatcher
(PathMatcher pathMatcher) URL パスを包含および除外パターンと照合するために使用するように PathMatcher を構成します。