类 EndpointProperties
- java.lang.Object
- org.springframework.boot.actuate.endpoint.EndpointProperties
@ConfigurationProperties(prefix="endpoints") public class EndpointProperties extends Object
Global endpoint properties.- 从以下版本开始:
- 1.3.0
构造器概要
构造器 构造器 说明 EndpointProperties()
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 Boolean
getEnabled()
Boolean
getSensitive()
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.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.void
setEnabled(Boolean enabled)
void
setSensitive(Boolean sensitive)
构造器详细资料
EndpointProperties
public EndpointProperties()
方法详细资料
getEnabled
public Boolean getEnabled()
setEnabled
public void setEnabled(Boolean enabled)
getSensitive
public Boolean getSensitive()
setSensitive
public void setSensitive(Boolean sensitive)
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 ornull
.enabled
- the endpoint property ornull
- 返回:
- 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 ornull
.sensitive
- the endpoint property ornull
sensitiveDefault
- the default setting to use if no environment property is defined- 返回:
- if the endpoint is sensitive