Annotation Interface Produces
@Repeatable(ProducesGroup.class)
@Retention(RUNTIME)
@Target({TYPE,METHOD})
public @interface Produces
Specifies a media type which would be produced by the service method or class.
Note that StandardCharsets.UTF_8
is used to produce the response when the specified media type is
MediaType.ANY_TEXT_TYPE
and the charset is not specified.
-
Required Element Summary
-
Element Details
-
value
String valueA media type string. For example,application/json; charset=utf-8
application/xml
application/octet-stream
text/html
-