Class PathMatchConfigurer
java.lang.Object
org.springframework.web.reactive.config.PathMatchConfigurer
Assist with configuring 
HandlerMapping's with path matching options.- Since:
- 5.0
- Author:
- Rossen Stoyanchev, Brian Clozel
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionaddPathPrefix(String prefix, Predicate<Class<?>> predicate) Configure a path prefix to apply to matching controller methods.protected Booleanprotected BooleanDeprecated.setUseCaseSensitiveMatch(Boolean caseSensitiveMatch) Whether to match to URLs irrespective of their case.setUseTrailingSlashMatch(Boolean trailingSlashMatch) Deprecated.
- 
Constructor Details- 
PathMatchConfigurerpublic PathMatchConfigurer()
 
- 
- 
Method Details- 
setUseCaseSensitiveMatchWhether to match to URLs irrespective of their case. If enabled a method mapped to "/users" won't match to "/Users/".The default value is false.
- 
setUseTrailingSlashMatch@Deprecated(since="6.0") public PathMatchConfigurer setUseTrailingSlashMatch(Boolean trailingSlashMatch) Deprecated.as of 6.0, seePathPatternParser.setMatchOptionalTrailingSeparator(boolean)Whether to match to URLs irrespective of the presence of a trailing slash. If enabled a method mapped to "/users" also matches to "/users/".The default was changed in 6.0 from truetofalsein order to support the deprecation of the property.
- 
addPathPrefixConfigure a path prefix to apply to matching controller methods.Prefixes are used to enrich the mappings of every @RequestMappingmethod whose controller type is matched by the correspondingPredicate. The prefix for the first matching predicate is used.Consider using HandlerTypePredicateto group controllers.- Parameters:
- prefix- the path prefix to apply
- predicate- a predicate for matching controller types
- Since:
- 5.1
 
- 
isUseTrailingSlashMatchDeprecated.
- 
isUseCaseSensitiveMatch
- 
getPathPrefixes
 
- 
PathPatternParser.setMatchOptionalTrailingSeparator(boolean)