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:
@@ -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