From 7cd0b16403e267a458178f376aa054b1483469e6 Mon Sep 17 00:00:00 2001 From: "David J. Biesack" Date: Tue, 12 Jun 2012 09:02:03 -0400 Subject: [PATCH] Minor fix in Javadoc for RequestMapping Issue: SPR-9483 --- .../web/bind/annotation/RequestMapping.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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 4ea7e7e6ab..00c9a52f92 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 @@ -331,8 +331,13 @@ public @interface RequestMapping { /** * The consumable media types of the mapped request, narrowing the primary mapping. - *

The format is a sequence of media types ("text/plain", "application/*), + *

The format is a single media type or a sequence of media types, * with a request only mapped if the {@code Content-Type} matches one of these media types. + * Examples: + *

+	 * consumes = "text/plain"
+	 * consumes = {"text/plain", "application/*"}
+	 * 
* Expressions can be negated by using the "!" operator, as in "!text/plain", which matches * all requests with a {@code Content-Type} other than "text/plain". *

Supported at the type level as well as at the method level! @@ -345,8 +350,13 @@ public @interface RequestMapping { /** * The producible media types of the mapped request, narrowing the primary mapping. - *

The format is a sequence of media types ("text/plain", "application/*), + *

The format is a single media type or a sequence of media types, * with a request only mapped if the {@code Accept} matches one of these media types. + * Examples: + *

+	 * produces = "text/plain"
+	 * produces = {"text/plain", "application/*"}
+	 * 
* Expressions can be negated by using the "!" operator, as in "!text/plain", which matches * all requests with a {@code Accept} other than "text/plain". *

Supported at the type level as well as at the method level! -- GitLab