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 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)
Whether suffix pattern matching should work only against path extensions
explicitly registered when you
configure content
negotiation . |
PathMatchConfigurer |
PathMatchConfigurer.setUseSuffixPatternMatch(Boolean suffixPatternMatch)
Whether to use suffix pattern match (".*") when matching patterns to
requests.
|
PathMatchConfigurer |
PathMatchConfigurer.setUseTrailingSlashMatch(Boolean trailingSlashMatch)
Whether to match to URLs irrespective of the presence of a trailing slash.
|
Modifier and Type | Method and Description |
---|---|
void |
WebMvcConfigurerAdapter.configurePathMatch(PathMatchConfigurer configurer)
Deprecated.
Helps with configuring HandlerMappings path matching options such as trailing slash match,
suffix registration, path matcher and path helper.
|
protected void |
DelegatingWebMvcConfiguration.configurePathMatch(PathMatchConfigurer configurer) |
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.
|
protected void |
WebMvcConfigurationSupport.configurePathMatch(PathMatchConfigurer configurer)
Override this method to configure path matching options.
|