注释类型 ConditionalOnEnabledEndpoint


  • @Retention(RUNTIME)
    @Target({METHOD,TYPE})
    @Conditional(org.springframework.boot.actuate.condition.OnEnabledEndpointCondition.class)
    @Documented
    public @interface ConditionalOnEnabledEndpoint
    Conditional that checks whether or not an endpoint is enabled. Matches if the value of the endpoints.<name>.enabled property is true. Does not match if the property's value or enabledByDefault is false. Otherwise, matches if the value of the endpoints.enabled property is true or if the property is not configured.
    从以下版本开始:
    1.2.4
    • 必需元素概要

      所需元素 
      修饰符和类型必需的元素说明
      Stringvalue
      The name of the endpoint.
    • 可选元素概要

      可选元素 
      修饰符和类型可选元素说明
      booleanenabledByDefault
      Returns whether or not the endpoint is enabled by default.
    • 元素详细资料

      • value

        String value
        The name of the endpoint.
        返回:
        The name of the endpoint
      • enabledByDefault

        boolean enabledByDefault
        Returns whether or not the endpoint is enabled by default.
        返回:
        true if the endpoint is enabled by default, otherwise false
        默认值:
        true