diff --git a/spring-web/src/main/java/org/springframework/web/bind/annotation/GetMapping.java b/spring-web/src/main/java/org/springframework/web/bind/annotation/GetMapping.java index c6d127c9d5..4c0f18cc73 100644 --- a/spring-web/src/main/java/org/springframework/web/bind/annotation/GetMapping.java +++ b/spring-web/src/main/java/org/springframework/web/bind/annotation/GetMapping.java @@ -32,9 +32,10 @@ import static org.springframework.web.bind.annotation.RequestMethod.GET; * *

Specifically, {@code @GetMapping} is a composed annotation that * acts as a shortcut for {@code @RequestMapping(method = RequestMethod.GET)}. - * Furthermore, this annotation does not support the - * {@link RequestMapping#method method} and {@link RequestMapping#consumes consumes} - * attributes of {@code @RequestMapping}. + * + *

Difference between {@code @GetMapping} & {@code @RequestMapping}
+ *

{@code @GetMapping} does not support the {@link RequestMapping#consumes consumes} + * attribute of {@code @RequestMapping}. * * @author Sam Brannen * @since 4.3