Skip to content

Commit

Permalink
Update MockMvc default for suffixPattern matching
Browse files Browse the repository at this point in the history
Closes gh-27030
  • Loading branch information
rstoyanchev committed Jun 8, 2021
1 parent aa2bfd4 commit cc2b980
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2020 the original author or authors.
* Copyright 2002-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -130,7 +130,7 @@ public class StandaloneMockMvcBuilder extends AbstractMockMvcBuilder<StandaloneM
@Nullable
private PathPatternParser patternParser;

private boolean useSuffixPatternMatch = true;
private boolean useSuffixPatternMatch = false;

private boolean useTrailingSlashPatternMatch = true;

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

0 comments on commit cc2b980

Please sign in to comment.