类的使用
org.springframework.web.servlet.config.annotation.PathMatchConfigurer
使用PathMatchConfigurer的程序包 程序包 说明 org.springframework.web.servlet.config.annotation Annotation-based setup for Spring MVC.org.springframework.web.servlet.config.annotation中PathMatchConfigurer的使用
返回PathMatchConfigurer的org.springframework.web.servlet.config.annotation中的方法 修饰符和类型 方法 说明 PathMatchConfigurer
PathMatchConfigurer. addPathPrefix(String prefix, Predicate<Class<?>> predicate)
Configure a path prefix to apply to matching controller methods.protected PathMatchConfigurer
WebMvcConfigurationSupport. getPathMatchConfigurer()
Callback for building thePathMatchConfigurer
.PathMatchConfigurer
PathMatchConfigurer. setPathMatcher(PathMatcher pathMatcher)
Set the PathMatcher implementation to use for matching URL paths against registered URL patterns.PathMatchConfigurer
PathMatchConfigurer. setUrlPathHelper(UrlPathHelper urlPathHelper)
Set the UrlPathHelper to use for resolution of lookup paths.PathMatchConfigurer
PathMatchConfigurer. setUseRegisteredSuffixPatternMatch(Boolean registeredSuffixPatternMatch)
已过时。as of 5.2.4.PathMatchConfigurer
PathMatchConfigurer. setUseSuffixPatternMatch(Boolean suffixPatternMatch)
已过时。as of 5.2.4.PathMatchConfigurer
PathMatchConfigurer. setUseTrailingSlashMatch(Boolean trailingSlashMatch)
Whether to match to URLs irrespective of the presence of a trailing slash.参数类型为PathMatchConfigurer的org.springframework.web.servlet.config.annotation中的方法 修饰符和类型 方法 说明 protected void
DelegatingWebMvcConfiguration. configurePathMatch(PathMatchConfigurer configurer)
protected void
WebMvcConfigurationSupport. configurePathMatch(PathMatchConfigurer configurer)
Override this method to configure path matching options.default void
WebMvcConfigurer. configurePathMatch(PathMatchConfigurer configurer)
Helps with configuring HandlerMappings path matching options such as trailing slash match, suffix registration, path matcher and path helper.void
WebMvcConfigurerAdapter. configurePathMatch(PathMatchConfigurer configurer)
已过时。Helps with configuring HandlerMappings path matching options such as trailing slash match, suffix registration, path matcher and path helper.