类 EnvironmentMvcEndpoint
- java.lang.Object
- org.springframework.boot.actuate.endpoint.mvc.AbstractEndpointMvcAdapter<Endpoint<?>>
- org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter
- org.springframework.boot.actuate.endpoint.mvc.EnvironmentMvcEndpoint
- 所有已实现的接口:
org.springframework.beans.factory.Aware
,MvcEndpoint
,NamedMvcEndpoint
,org.springframework.context.EnvironmentAware
@ConfigurationProperties(prefix="endpoints.env") public class EnvironmentMvcEndpoint extends EndpointMvcAdapter implements org.springframework.context.EnvironmentAware
Adapter to exposeEnvironmentEndpoint
as anMvcEndpoint
.
嵌套类概要
嵌套类 修饰符和类型 类 说明 static class
EnvironmentMvcEndpoint.NoSuchPropertyException
Exception thrown when the specified property cannot be found.
字段概要
从接口继承的字段 org.springframework.boot.actuate.endpoint.mvc.MvcEndpoint
DISABLED_RESPONSE
构造器概要
构造器 构造器 说明 EnvironmentMvcEndpoint(EnvironmentEndpoint delegate)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
setEnvironment(org.springframework.core.env.Environment environment)
Object
value(String name)
从类继承的方法 org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter
invoke
从类继承的方法 org.springframework.boot.actuate.endpoint.mvc.AbstractEndpointMvcAdapter
getDelegate, getDisabledResponse, getEndpointType, getName, getPath, isSensitive, setPath
构造器详细资料
EnvironmentMvcEndpoint
public EnvironmentMvcEndpoint(EnvironmentEndpoint delegate)
方法详细资料
value
@ActuatorGetMapping("/{name:.*}") @ResponseBody @HypermediaDisabled public Object value(@PathVariable String name)
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment)
- 指定者:
setEnvironment
在接口中org.springframework.context.EnvironmentAware