クラス PathPatternRequestMatcher

java.lang.ObjectSE
org.springframework.security.web.servlet.util.matcher.PathPatternRequestMatcher
実装済みのインターフェース一覧:
RequestMatcher

public final class PathPatternRequestMatcher extends ObjectSE implements RequestMatcher
PathPattern を使用して各 HttpServletRequest と照合する RequestMatcher。指定するパスはコンテキストパスを基準にする必要があります (つまり、コンテキストパスを除外する必要があります)。

PathPatternRequestMatcher.Builder.basePath でサーブレットパスを提供し、複数のマッチャーで再利用できます。

関連する URI パターンを含む HandlerMapping は PathPatternParser.defaultInstance を使用している必要があることに注意してください。そうでない場合は、PathPatternParser を使用してパスを解析し、コンストラクターで PathPattern を提供します。

導入:
6.5