Annotation Type Consumes


@Repeatable(ConsumesGroup.class)
@Retention(RUNTIME)
@Target({TYPE,METHOD})
public @interface Consumes
Specifies a media type which would be consumed by the service method or class.
  • Required Element Summary

    Required Elements 
    Modifier and Type Required Element Description
    String value
    A media type string.
  • Element Details

    • value

      String value
      A media type string. For example,
      • application/json; charset=utf-8
      • application/xml
      • application/octet-stream
      • text/html