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
This commit is contained in:
evan-mc
2024-05-10 21:45:06 -07:00
committed by Brian Clozel
parent ec4f3ea6d0
commit 376d7839e0

View File

@@ -132,7 +132,7 @@ public class StandaloneMockMvcBuilder extends AbstractMockMvcBuilder<StandaloneM
private boolean useSuffixPatternMatch = false;
private boolean useTrailingSlashPatternMatch = true;
private boolean useTrailingSlashPatternMatch = false;
@Nullable
private Boolean removeSemicolonContent;