类 EndpointProperties


  • @ConfigurationProperties(prefix="endpoints")
    public class EndpointProperties
    extends Object
    Global endpoint properties.
    从以下版本开始:
    1.3.0
    • 方法详细资料

      • isEnabled

        public static boolean isEnabled​(org.springframework.core.env.Environment environment,
                                        Boolean enabled)
        Determine if an endpoint is enabled based on its specific property and taking into account the global default.
        参数:
        environment - the Spring environment or null.
        enabled - the endpoint property or null
        返回:
        if the endpoint is enabled
      • isSensitive

        public static boolean isSensitive​(org.springframework.core.env.Environment environment,
                                          Boolean sensitive,
                                          boolean sensitiveDefault)
        Determine if an endpoint is sensitive based on its specific property and taking into account the global default.
        参数:
        environment - the Spring environment or null.
        sensitive - the endpoint property or null
        sensitiveDefault - the default setting to use if no environment property is defined
        返回:
        if the endpoint is sensitive