批注接口 ServletEndpoint


@Target(TYPE) @Retention(RUNTIME) @Documented @Endpoint @FilteredEndpoint(org.springframework.boot.actuate.endpoint.web.annotation.ServletEndpointFilter.class) @Deprecated(since="3.3.0", forRemoval=true) public @interface ServletEndpoint
已过时, 待删除: 此 API 元素将从以后的版本中删除。
since 3.3.0 in favor of @Endpoint and @WebEndpoint
Identifies a type as being an endpoint that supplies a servlet to expose. Implementations must also implement Supplier<EndpointServlet> and return a valid EndpointServlet.

This annotation can be used when existing servlets need to be exposed as actuator endpoints, but it is at the expense of portability. Most users should prefer the @Endpoint or @WebEndpoint annotations whenever possible.

从以下版本开始:
2.0.0
作者:
Phillip Webb
  • 必需元素概要

    所需元素
    修饰符和类型
    必需的元素
    说明
    已过时, 待删除: 此 API 元素将从以后的版本中删除。
    The id of the endpoint.
  • 可选元素概要

    可选元素
    修饰符和类型
    可选元素
    说明
    已过时, 待删除: 此 API 元素将从以后的版本中删除。
    Level of access to the endpoint that is permitted by default.
    boolean
    已过时, 待删除: 此 API 元素将从以后的版本中删除。
    If the endpoint should be enabled or disabled by default.
  • 元素详细资料

    • id

      已过时, 待删除: 此 API 元素将从以后的版本中删除。
      The id of the endpoint.
      返回:
      the id
    • enableByDefault

      @AliasFor(annotation=Endpoint.class) boolean enableByDefault
      已过时, 待删除: 此 API 元素将从以后的版本中删除。
      If the endpoint should be enabled or disabled by default.
      返回:
      true if the endpoint is enabled by default
      默认值:
      true
    • defaultAccess

      已过时, 待删除: 此 API 元素将从以后的版本中删除。
      Level of access to the endpoint that is permitted by default.
      返回:
      the default level of access
      从以下版本开始:
      3.4.0
      默认值:
      UNRESTRICTED