From 2acc7c609faaa67b81a920179f6933428855161a Mon Sep 17 00:00:00 2001 From: rstoyanchev Date: Wed, 13 Dec 2023 12:10:47 +0000 Subject: [PATCH] Refine RequestMappingInfo path initialization Refining the change from 43700302c6a34924f727dc3594f074ca75298e24 so that we consistently pick a PathPatternParser (a) if it is provided, and (b) if both PathPatternParser and PathMatcher are not provided. Also applying the same in the mutate builder. See gh-31662 --- .../mvc/method/RequestMappingInfo.java | 40 ++++++++++++++----- 1 file changed, 30 insertions(+), 10 deletions(-) diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/RequestMappingInfo.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/RequestMappingInfo.java index 4caeef3e71..3a1d5e6b21 100644 --- a/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/RequestMappingInfo.java +++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/RequestMappingInfo.java @@ -708,20 +708,21 @@ public final class RequestMappingInfo implements RequestConditionThe default was changed in 6.0 from {@code true} to {@code false} in