Deprecate ANT_PATH_MATCHER

Closes gh-45493
This commit is contained in:
Stéphane Nicoll 2025-05-08 22:03:02 -07:00 committed by Phillip Webb
parent 05fb37d046
commit 111e710576
2 changed files with 4 additions and 0 deletions

View File

@ -238,6 +238,7 @@ public class WebMvcAutoConfiguration {
}
@Override
@SuppressWarnings("removal")
public void configurePathMatch(PathMatchConfigurer configurer) {
if (this.mvcProperties.getPathmatch()
.getMatchingStrategy() == WebMvcProperties.MatchingStrategy.ANT_PATH_MATCHER) {

View File

@ -431,7 +431,10 @@ public class WebMvcProperties {
/**
* Use the {@code AntPathMatcher} implementation.
* @deprecated since 4.0.0 for removal in 4.2.0 in favor of
* {@link #PATH_PATTERN_PARSER}
*/
@Deprecated(since = "4.0.0", forRemoval = true)
ANT_PATH_MATCHER,
/**