Switch default MVC path matching strategy

Change the default `spring.mvc.pathmatch.matching-strategy` to
`PATH_PATTERN_PARSER`.

Closes gh-24805
This commit is contained in:
Phillip Webb
2021-04-07 10:59:23 -07:00
parent 455864bfa0
commit ab8e599cfe
2 changed files with 3 additions and 2 deletions

View File

@@ -434,7 +434,7 @@ public class WebMvcProperties {
/**
* Choice of strategy for matching request paths against registered mappings.
*/
private MatchingStrategy matchingStrategy = MatchingStrategy.ANT_PATH_MATCHER;
private MatchingStrategy matchingStrategy = MatchingStrategy.PATH_PATTERN_PARSER;
/**
* Whether to use suffix pattern match (".*") when matching patterns to requests.