Skip to content

Commit cc2b980

Browse files
committed
Update MockMvc default for suffixPattern matching
Closes gh-27030
1 parent aa2bfd4 commit cc2b980

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2020 the original author or authors.
2+
* Copyright 2002-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -130,7 +130,7 @@ public class StandaloneMockMvcBuilder extends AbstractMockMvcBuilder<StandaloneM
130130
@Nullable
131131
private PathPatternParser patternParser;
132132

133-
private boolean useSuffixPatternMatch = true;
133+
private boolean useSuffixPatternMatch = false;
134134

135135
private boolean useTrailingSlashPatternMatch = true;
136136

@@ -324,7 +324,7 @@ public void setPatternParser(PathPatternParser parser) {
324324
/**
325325
* Whether to use suffix pattern match (".*") when matching patterns to
326326
* requests. If enabled a method mapped to "/users" also matches to "/users.*".
327-
* <p>The default value is {@code true}.
327+
* <p>The default value is {@code false}.
328328
* @deprecated as of 5.2.4. See class-level note in
329329
* {@link RequestMappingHandlerMapping} on the deprecation of path extension
330330
* config options.

0 commit comments

Comments
 (0)