クラスの使用
org.springframework.web.servlet.config.annotation.PathMatchConfigurer
org.springframework.web.servlet.config.annotation 内の PathMatchConfigurer 使用
修飾子と型メソッド説明PathMatchConfigurer.addPathPrefix
(StringSE prefix, PredicateSE<ClassSE<?>> predicate) 一致するコントローラーメソッドに適用するパスプレフィックスを構成します。protected PathMatchConfigurer
WebMvcConfigurationSupport.getPathMatchConfigurer()
PathMatchConfigurer
を構築するためのコールバック。PathMatchConfigurer.setPathMatcher
(PathMatcher pathMatcher) 文字列パターンマッチングに使用する PathMatcher を設定します。PathMatchConfigurer.setPatternParser
(PathPatternParser patternParser) URL パスマッチングのためにpatterns
を解析するようにPathPatternParser
を設定します。PathMatchConfigurer.setUrlPathHelper
(UrlPathHelper urlPathHelper) アプリケーションのマッピングパスを解決するために使用する UrlPathHelper を設定します。PathMatchConfigurer.setUseRegisteredSuffixPatternMatch
(BooleanSE registeredSuffixPatternMatch) 使用すべきではありません。5.2.4 現在。PathMatchConfigurer.setUseSuffixPatternMatch
(BooleanSE suffixPatternMatch) 使用すべきではありません。5.2.4 現在。PathMatchConfigurer.setUseTrailingSlashMatch
(BooleanSE trailingSlashMatch) 使用すべきではありません。修飾子と型メソッド説明protected void
DelegatingWebMvcConfiguration.configurePathMatch
(PathMatchConfigurer configurer) protected void
WebMvcConfigurationSupport.configurePathMatch
(PathMatchConfigurer configurer) パス一致オプションを構成するには、このメソッドをオーバーライドします。default void
WebMvcConfigurer.configurePathMatch
(PathMatchConfigurer configurer) 解析済みPathPatterns
またはPathMatcher
での文字列パターンマッチングを使用するかどうか、末尾のスラッシュを一致させるかどうかなど、HandlerMapping
パスマッチングオプションの構成を支援します。