批注接口 Endpoint


@Target(TYPE) @Retention(RUNTIME) @Documented @Reflective public @interface Endpoint
Identifies a type as being an actuator endpoint that provides information about the running application. Endpoints can be exposed over a variety of technologies including JMX and HTTP.

Most @Endpoint classes will declare one or more @ReadOperation, @WriteOperation, @DeleteOperation annotated methods which will be automatically adapted to the exposing technology (JMX, Spring MVC, Spring WebFlux, Jersey etc.).

@Endpoint represents the lowest common denominator for endpoints and intentionally limits the sorts of operation methods that may be defined in order to support the broadest possible range of exposure technologies. If you need deeper support for a specific technology you can either write an endpoint that is filtered to a certain technology, or provide extension for the broader endpoint.

从以下版本开始:
2.0.0
作者:
Andy Wilkinson, Phillip Webb
另请参阅:
  • 可选元素概要

    可选元素
    修饰符和类型
    可选元素
    说明
    Level of access to the endpoint that is permitted by default.
    boolean
    已过时, 待删除: 此 API 元素将从以后的版本中删除。
    since 3.4.0 for removal in 4.0.0 in favor of defaultAccess()
    The id of the endpoint (must follow EndpointId rules).
  • 元素详细资料

    • id

      String id
      The id of the endpoint (must follow EndpointId rules).
      返回:
      the id
      另请参阅:
      默认值:
      ""
    • enableByDefault

      @Deprecated(since="3.4.0", forRemoval=true) boolean enableByDefault
      已过时, 待删除: 此 API 元素将从以后的版本中删除。
      since 3.4.0 for removal in 4.0.0 in favor of defaultAccess()
      If the endpoint should be enabled or disabled by default.
      返回:
      true if the endpoint is enabled by default
      默认值:
      true
    • defaultAccess

      Access defaultAccess
      Level of access to the endpoint that is permitted by default.
      返回:
      the default level of access
      从以下版本开始:
      3.4.0
      默认值:
      UNRESTRICTED