Package | Description |
---|---|
org.springframework.web.servlet.config.annotation |
Annotation-based setup for Spring MVC.
|
Modifier and Type | Method and Description |
---|---|
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 the
PathMatchConfigurer . |
PathMatchConfigurer |
PathMatchConfigurer.setPathMatcher(PathMatcher pathMatcher)
Set the PathMatcher to use for String pattern matching.
|
PathMatchConfigurer |
PathMatchConfigurer.setPatternParser(PathPatternParser patternParser)
Enable use of parsed
PathPattern s as described in
AbstractHandlerMapping.setPatternParser(PathPatternParser) . |
PathMatchConfigurer |
PathMatchConfigurer.setUrlPathHelper(UrlPathHelper urlPathHelper)
Set the UrlPathHelper to use to resolve the mapping path for the application.
|
PathMatchConfigurer |
PathMatchConfigurer.setUseRegisteredSuffixPatternMatch(Boolean registeredSuffixPatternMatch)
Deprecated.
as of 5.2.4. See class-level note in
RequestMappingHandlerMapping on the deprecation of path extension
config options. |
PathMatchConfigurer |
PathMatchConfigurer.setUseSuffixPatternMatch(Boolean suffixPatternMatch)
Deprecated.
as of 5.2.4. See class-level note in
RequestMappingHandlerMapping on the deprecation of path extension
config options. As there is no replacement for this method, in 5.2.x it is
necessary to set it to false . In 5.3 the default changes to
false and use of this property becomes unnecessary. |
PathMatchConfigurer |
PathMatchConfigurer.setUseTrailingSlashMatch(Boolean trailingSlashMatch)
Whether to match to URLs irrespective of the presence of a trailing slash.
|
Modifier and Type | Method and Description |
---|---|
default void |
WebMvcConfigurer.configurePathMatch(PathMatchConfigurer configurer)
Help with configuring
HandlerMapping path matching options such as
whether to use parsed PathPatterns or String pattern matching
with PathMatcher , whether to match trailing slashes, and more. |
protected void |
DelegatingWebMvcConfiguration.configurePathMatch(PathMatchConfigurer configurer) |
protected void |
WebMvcConfigurationSupport.configurePathMatch(PathMatchConfigurer configurer)
Override this method to configure path matching options.
|
void |
WebMvcConfigurerAdapter.configurePathMatch(PathMatchConfigurer configurer)
Deprecated.
Help with configuring
HandlerMapping path matching options such as
whether to use parsed PathPatterns or String pattern matching
with PathMatcher , whether to match trailing slashes, and more. |