diff --git a/spring-web/src/main/java/org/springframework/web/bind/annotation/RequestMapping.java b/spring-web/src/main/java/org/springframework/web/bind/annotation/RequestMapping.java index 362373f4c5..0b2f1487d4 100644 --- a/spring-web/src/main/java/org/springframework/web/bind/annotation/RequestMapping.java +++ b/spring-web/src/main/java/org/springframework/web/bind/annotation/RequestMapping.java @@ -103,11 +103,11 @@ public @interface RequestMapping { String[] value() default {}; /** - * The path mapping URIs (e.g. {@code "/myPath.do"}). - *

Ant-style path patterns are also supported (e.g. {@code "/myPath/*.do"}). - * At the method level, relative paths (e.g. {@code "edit.do"}) are supported + * The path mapping URIs (e.g. {@code "/profile"}). + *

Ant-style path patterns are also supported (e.g. {@code "/profile/**"}). + * At the method level, relative paths (e.g. {@code "edit"}) are supported * within the primary mapping expressed at the type level. - * Path mapping URIs may contain placeholders (e.g. "/${connect}"). + * Path mapping URIs may contain placeholders (e.g. "/${profile_path}"). *

Supported at the type level as well as at the method level! * When used at the type level, all method-level mappings inherit * this primary mapping, narrowing it for a specific handler method.