diff --git a/spring-web/src/main/java/org/springframework/web/util/pattern/PathPattern.java b/spring-web/src/main/java/org/springframework/web/util/pattern/PathPattern.java index 69007b5aec..acdab2eba2 100644 --- a/spring-web/src/main/java/org/springframework/web/util/pattern/PathPattern.java +++ b/spring-web/src/main/java/org/springframework/web/util/pattern/PathPattern.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2019 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. @@ -40,16 +40,16 @@ import org.springframework.util.StringUtils; *
  • {@code ?} matches one character
  • *
  • {@code *} matches zero or more characters within a path segment
  • *
  • {@code **} matches zero or more path segments until the end of the path
  • - *
  • {@code {spring}} matches a path segment and captures it as a variable named "spring"
  • - *
  • {@code {spring:[a-z]+}} matches the regexp {@code [a-z]+} as a path variable named "spring"
  • - *
  • {@code {*spring}} matches zero or more path segments until the end of the path + *
  • {spring} matches a path segment and captures it as a variable named "spring"
  • + *
  • {spring:[a-z]+} matches the regexp {@code [a-z]+} as a path variable named "spring"
  • + *
  • {*spring} matches zero or more path segments until the end of the path * and captures it as a variable named "spring"
  • * * *

    Examples

    * * @@ -260,10 +260,10 @@ public class PathPattern implements Comparable { /** * Determine the pattern-mapped part for the given path. *

    For example:

    *

    Notes: *