mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
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:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user