@ -1529,40 +1529,39 @@ The following example has type and method level mappings:
@@ -1529,40 +1529,39 @@ The following example has type and method level mappings:
@ -1646,32 +1645,29 @@ by using `PropertyPlaceHolderConfigurer` against local, system, environment, and
@@ -1646,32 +1645,29 @@ by using `PropertyPlaceHolderConfigurer` against local, system, environment, and
sources. You can use this, for example, to parameterize a base URL based on some external
configuration.
NOTE: Spring MVC uses the `PathMatcher` contract and the `AntPathMatcher` implementation from
Both help to sorts patterns with more specific ones on top. A pattern is less specific if
it has a lower count of URI variables (counted as 1), single wildcards (counted as 1),
and double wildcards (counted as 2). Given an equal score, the longer pattern is chosen.
Given the same score and length, the pattern with more URI variables than wildcards is
chosen.
The default mapping pattern (`/{asterisk}{asterisk}`) is excluded from scoring and always
sorted last. Also, prefix patterns (such as `/public/{asterisk}{asterisk}`) are considered less
specific than other pattern that do not have double wildcards.
For the full details, see {api-spring-framework}/util/AntPathMatcher.AntPatternComparator.html[`AntPatternComparator`]
in {api-spring-framework}/util/AntPathMatcher.html[`AntPathMatcher`] and also keep in mind that
you can customize the {api-spring-framework}/util/PathMatcher.html[`PathMatcher`] implementation.
See <<mvc-config-path-matching>> in the configuration section.
For the full details, follow the above links to the pattern Comparators.
[[mvc-ann-requestmapping-suffix-pattern-match]]
@ -5832,20 +5828,12 @@ The following example shows how to customize path matching in Java configuration
@@ -5832,20 +5828,12 @@ The following example shows how to customize path matching in Java configuration
@Override
public void configurePathMatch(PathMatchConfigurer configurer) {
@ -5858,20 +5846,11 @@ The following example shows how to customize path matching in Java configuration
@@ -5858,20 +5846,11 @@ The following example shows how to customize path matching in Java configuration
override fun configurePathMatch(configurer: PathMatchConfigurer) {