From 4bead6e5424126d52edf075d272e5cfe86984196 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Mon, 7 Mar 2016 18:18:46 +0100 Subject: [PATCH] Polish Javadoc for @GetMapping Issue: SPR-13992 --- .../springframework/web/bind/annotation/GetMapping.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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