类 PropertiesEndpointAccessResolver

java.lang.Object
org.springframework.boot.actuate.autoconfigure.endpoint.PropertiesEndpointAccessResolver
所有已实现的接口:
EndpointAccessResolver

public class PropertiesEndpointAccessResolver extends Object implements EndpointAccessResolver
EndpointAccessResolver that resolves the permitted level of access to an endpoint using the following properties:
  1. management.endpoint.<id>.access or management.endpoint.<id>.enabled (deprecated)
  2. management.endpoints.access.default or management.endpoints.enabled-by-default (deprecated)
The resulting access is capped using management.endpoints.access.max-permitted.
从以下版本开始:
3.4.0
作者:
Andy Wilkinson
  • 构造器详细资料

    • PropertiesEndpointAccessResolver

      public PropertiesEndpointAccessResolver(PropertyResolver properties)
  • 方法详细资料

    • accessFor

      public Access accessFor(EndpointId endpointId, Access defaultAccess)
      从接口复制的说明: EndpointAccessResolver
      Resolves the permitted level of access for the endpoint with the given endpointId and defaultAccess.
      指定者:
      accessFor 在接口中 EndpointAccessResolver
      参数:
      endpointId - the ID of the endpoint
      defaultAccess - the default access level of the endpoint
      返回:
      the permitted level of access, never null