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