类的使用
cn.taketoday.web.config.PathMatchConfigurer
使用PathMatchConfigurer的程序包
-
cn.taketoday.web.config中PathMatchConfigurer的使用
修饰符和类型方法说明PathMatchConfigurer.addPathPrefix(String prefix, Predicate<Class<?>> predicate) Configure a path prefix to apply to matching controller methods.protected PathMatchConfigurerWebMvcConfigurationSupport.getPathMatchConfigurer()Callback for building thePathMatchConfigurer.PathMatchConfigurer.setUseCaseSensitiveMatch(Boolean caseSensitiveMatch) Whether to match to URLs irrespective of their case.PathMatchConfigurer.setUseTrailingSlashMatch(Boolean trailingSlashMatch) Whether to match to URLs irrespective of the presence of a trailing slash.修饰符和类型方法说明voidCompositeWebMvcConfigurer.configurePathMatch(PathMatchConfigurer configurer) protected voidDelegatingWebMvcConfiguration.configurePathMatch(PathMatchConfigurer configurer) protected voidWebMvcConfigurationSupport.configurePathMatch(PathMatchConfigurer configurer) Override this method to configure path matching options.default voidWebMvcConfigurer.configurePathMatch(PathMatchConfigurer configurer) Help with configuringHandlerMappingpath matching options such as whether to use parsedPathPatternsor String pattern matching withPathMatcher, whether to match trailing slashes, and more.