Skip to content

Commit 376d783

Browse files
evan-mcbclozel
authored andcommitted
Align StandaloneMockMvcBuilder with trailing slash defaults
Prior to this commit, trailing slash matching was disabled by default in Spring MVC with gh-28552. `StandaloneMockMvcBuilder` was not changed as a result and still had the trailing slash match option enabled. This commit aligns the defaults in `StandaloneMockMvcBuilder` to better reflect the expected behavior in tests. Closes gh-32796
1 parent ec4f3ea commit 376d783

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: spring-test/src/main/java/org/springframework/test/web/servlet/setup/StandaloneMockMvcBuilder.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public class StandaloneMockMvcBuilder extends AbstractMockMvcBuilder<StandaloneM
132132

133133
private boolean useSuffixPatternMatch = false;
134134

135-
private boolean useTrailingSlashPatternMatch = true;
135+
private boolean useTrailingSlashPatternMatch = false;
136136

137137
@Nullable
138138
private Boolean removeSemicolonContent;

0 commit comments

Comments
 (0)