类 EnvironmentEndpoint
- java.lang.Object
- org.springframework.boot.actuate.endpoint.AbstractEndpoint<Map<String,Object>>
- org.springframework.boot.actuate.endpoint.EnvironmentEndpoint
- 所有已实现的接口:
org.springframework.beans.factory.Aware
,Endpoint<Map<String,Object>>
,org.springframework.context.EnvironmentAware
@ConfigurationProperties(prefix="endpoints.env") public class EnvironmentEndpoint extends AbstractEndpoint<Map<String,Object>>
Endpoint
to exposeenvironment
information.
构造器概要
构造器 构造器 说明 EnvironmentEndpoint()
Create a newEnvironmentEndpoint
instance.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 org.springframework.core.env.PropertyResolver
getResolver()
Map<String,Object>
invoke()
Called to invoke the endpoint.protected Map<String,Object>
postProcessSourceProperties(String sourceName, Map<String,Object> properties)
Apply any post processing to source data before it is added.Object
sanitize(String name, Object object)
void
setKeysToSanitize(String... keysToSanitize)
从类继承的方法 org.springframework.boot.actuate.endpoint.AbstractEndpoint
getEnvironment, getId, isEnabled, isSensitive, setEnabled, setEnvironment, setId, setSensitive
构造器详细资料
EnvironmentEndpoint
public EnvironmentEndpoint()
Create a newEnvironmentEndpoint
instance.
方法详细资料
setKeysToSanitize
public void setKeysToSanitize(String... keysToSanitize)
invoke
public Map<String,Object> invoke()
从接口复制的说明:Endpoint
Called to invoke the endpoint.- 返回:
- the results of the invocation
getResolver
public org.springframework.core.env.PropertyResolver getResolver()
postProcessSourceProperties
protected Map<String,Object> postProcessSourceProperties(String sourceName, Map<String,Object> properties)
Apply any post processing to source data before it is added.- 参数:
sourceName
- the source nameproperties
- the properties- 返回:
- the post-processed properties or
null
if the source should not be added - 从以下版本开始:
- 1.4.0