批注接口 ReadOperation


@Target(METHOD) @Retention(RUNTIME) @Documented @Reflective(org.springframework.boot.actuate.endpoint.annotation.OperationReflectiveProcessor.class) public @interface ReadOperation
Identifies a method on an @Endpoint as being a read operation.
从以下版本开始:
2.0.0
作者:
Andy Wilkinson
  • 可选元素概要

    可选元素
    修饰符和类型
    可选元素
    说明
    The media type of the result of the operation.
    Class<? extends Producible>
    The media types of the result of the operation.
  • 元素详细资料

    • produces

      String[] produces
      The media type of the result of the operation.
      返回:
      the media type
      默认值:
      {}
    • producesFrom

      Class<? extends Producible> producesFrom
      The media types of the result of the operation.
      返回:
      the media types
      默认值:
      org.springframework.boot.actuate.endpoint.Producible.class