Skip to content

Commit 111e710

Browse files
snicollphilwebb
authored andcommitted
Deprecate ANT_PATH_MATCHER
Closes gh-45493
1 parent 05fb37d commit 111e710

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration.java

+1
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ public void configureAsyncSupport(AsyncSupportConfigurer configurer) {
238238
}
239239

240240
@Override
241+
@SuppressWarnings("removal")
241242
public void configurePathMatch(PathMatchConfigurer configurer) {
242243
if (this.mvcProperties.getPathmatch()
243244
.getMatchingStrategy() == WebMvcProperties.MatchingStrategy.ANT_PATH_MATCHER) {

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/servlet/WebMvcProperties.java

+3
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,10 @@ public enum MatchingStrategy {
431431

432432
/**
433433
* Use the {@code AntPathMatcher} implementation.
434+
* @deprecated since 4.0.0 for removal in 4.2.0 in favor of
435+
* {@link #PATH_PATTERN_PARSER}
434436
*/
437+
@Deprecated(since = "4.0.0", forRemoval = true)
435438
ANT_PATH_MATCHER,
436439

437440
/**

0 commit comments

Comments
 (0)