Annotation Type 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.
    Since:
    1.2.4
    • Required Element Summary

      Required Elements 
      Modifier and TypeRequired ElementDescription
      Stringvalue
      The name of the endpoint.
    • Optional Element Summary

      Optional Elements 
      Modifier and TypeOptional ElementDescription
      booleanenabledByDefault
      Returns whether or not the endpoint is enabled by default.
    • Element Detail

      • value

        String value
        The name of the endpoint.
        Returns:
        The name of the endpoint
      • enabledByDefault

        boolean enabledByDefault
        Returns whether or not the endpoint is enabled by default.
        Returns:
        true if the endpoint is enabled by default, otherwise false
        Default:
        true