Skip to content

Commit 1f0d107

Browse files
committed
Enable trailing slash matching by default
This commit enables trailing slash matching in `PathPatternParser` by default - this mirrors the default configuration in `PathMatcher` implementations in MVC.
1 parent 3ae84d6 commit 1f0d107

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-web/src/main/java/org/springframework/web/util/pattern/PathPatternParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public class PathPatternParser {
3333

3434
// Whether the PathPatterns produced by the parser will allow patterns that don't
3535
// have a trailing slash to match paths that may or may not have a trailing slash.
36-
private boolean matchOptionalTrailingSlash = false;
36+
private boolean matchOptionalTrailingSlash = true;
3737

3838
// If the parser produces case-sensitive PathPattern matchers.
3939
private boolean caseSensitive = true;

0 commit comments

Comments
 (0)