类 PathMatchConfigurer
java.lang.Object
cn.taketoday.web.config.PathMatchConfigurer
Assist with configuring
HandlerMapping's with path matching options.- 从以下版本开始:
- 4.0 2022/1/19 20:41
- 作者:
- Rossen Stoyanchev, Brian Clozel, Harry Yang
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明addPathPrefix(String prefix, Predicate<Class<?>> predicate) Configure a path prefix to apply to matching controller methods.setUseCaseSensitiveMatch(Boolean caseSensitiveMatch) Whether to match to URLs irrespective of their case.setUseTrailingSlashMatch(Boolean trailingSlashMatch) Whether to match to URLs irrespective of the presence of a trailing slash.
-
字段详细资料
-
trailingSlashMatch
-
caseSensitiveMatch
-
pathPrefixes
-
-
构造器详细资料
-
PathMatchConfigurer
public PathMatchConfigurer()
-
-
方法详细资料
-
setUseCaseSensitiveMatch
Whether 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
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 value is
true. -
addPathPrefix
Configure 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.- 参数:
prefix- the prefix to applypredicate- a predicate for matching controller types
-
getPathPrefixes
-
isUseTrailingSlashMatch
-
isUseCaseSensitiveMatch
-