@RequestMapping.consumes() and produces() now default to an empty array, instead of */*

This commit is contained in:
Arjen Poutsma
2011-05-18 11:34:47 +00:00
parent a618bcc8cd
commit 1eaca65720
13 changed files with 109 additions and 120 deletions

View File

@@ -309,7 +309,7 @@ public @interface RequestMapping {
* @see org.springframework.http.MediaType
* @see javax.servlet.http.HttpServletRequest#getContentType()
*/
String[] consumes() default "*/*";
String[] consumes() default {};
/**
* The producible media types of the mapped request, narrowing the primary mapping.
@@ -322,6 +322,6 @@ public @interface RequestMapping {
* this consumes restriction.
* @see org.springframework.http.MediaType
*/
String[] produces() default "*/*";
String[] produces() default {};
}