public class PathMatchConfigurer extends ObjectSE
構成済みのパスマッチャーとパスヘルパーのインスタンスは、次のものに対して共有されます。
RequestMappingHandlerMapping, SimpleUrlHandlerMapping| コンストラクターと説明 |
|---|
PathMatchConfigurer() |
| 修飾子と型 | メソッドと説明 |
|---|---|
PathMatcher | getPathMatcher() |
UrlPathHelper | getUrlPathHelper() |
BooleanSE | isUseRegisteredSuffixPatternMatch() |
BooleanSE | isUseSuffixPatternMatch() |
BooleanSE | isUseTrailingSlashMatch() |
PathMatchConfigurer | setPathMatcher(PathMatcher pathMatcher) 登録された URL パターンに対する URL パスのマッチングに使用する PathMatcher 実装を設定します。 |
PathMatchConfigurer | setUrlPathHelper(UrlPathHelper urlPathHelper) ルックアップパスの解決に使用する UrlPathHelper を設定します。 |
PathMatchConfigurer | setUseRegisteredSuffixPatternMatch(BooleanSE registeredSuffixPatternMatch)configure content negotiation の実行時に明示的に登録されたパス拡張子に対してのみサフィックスパターンマッチングが機能するかどうか。 |
PathMatchConfigurer | setUseSuffixPatternMatch(BooleanSE suffixPatternMatch) パターンをリクエストに一致させるときに、サフィックスパターン一致(".*" )を使用するかどうか。 |
PathMatchConfigurer | setUseTrailingSlashMatch(BooleanSE trailingSlashMatch) 末尾のスラッシュの有無に関係なく、URL に一致するかどうか。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic PathMatchConfigurer setUseSuffixPatternMatch(BooleanSE suffixPatternMatch)
デフォルトでは、これは true に設定されています。
public PathMatchConfigurer setUseTrailingSlashMatch(BooleanSE trailingSlashMatch)
デフォルト値は true です。
public PathMatchConfigurer setUseRegisteredSuffixPatternMatch(BooleanSE registeredSuffixPatternMatch)
configure content negotiation の実行時に明示的に登録されたパス拡張子に対してのみ、サフィックスパターンマッチングが機能するかどうか。これは、あいまいさを減らし、"." のような課題を回避するために一般的に推奨されます。他の理由でパスに表示されます。デフォルトでは、これは "false" に設定されています。
public PathMatchConfigurer setUrlPathHelper(UrlPathHelper urlPathHelper)
これを使用して、デフォルトの UrlPathHelper をカスタムサブクラスでオーバーライドするか、複数の HandlerMappings および MethodNameResolvers で共通の UrlPathHelper 設定を共有します。
public PathMatchConfigurer setPathMatcher(PathMatcher pathMatcher)
AntPathMatcherpublic BooleanSE isUseSuffixPatternMatch()
public BooleanSE isUseTrailingSlashMatch()
public BooleanSE isUseRegisteredSuffixPatternMatch()
public UrlPathHelper getUrlPathHelper()
public PathMatcher getPathMatcher()