Class ConfigurationPropertiesReportEndpoint
java.lang.Object
org.springframework.boot.actuate.context.properties.ConfigurationPropertiesReportEndpoint
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
@Endpoint(id="configprops")
public class ConfigurationPropertiesReportEndpoint
extends Object
implements org.springframework.context.ApplicationContextAware
@Endpoint to expose application properties from
@ConfigurationProperties annotated beans.
To protect sensitive information from being exposed, all property values are masked by
default. To configure when property values should be shown, use
management.endpoint.configprops.show-values and
management.endpoint.configprops.roles in your Spring Boot application
configuration.
- Since:
- 2.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classDescription of a@ConfigurationPropertiesbean.static final classDescription of an application's@ConfigurationPropertiesbeans.static final classDescription of an application context's@ConfigurationPropertiesbeans.protected static classBeanSerializerModifierto return only relevant configuration properties. -
Constructor Summary
ConstructorsConstructorDescriptionConfigurationPropertiesReportEndpoint(Iterable<SanitizingFunction> sanitizingFunctions, Show showValues) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigureJsonMapper(com.fasterxml.jackson.databind.json.JsonMapper.Builder builder) Configure Jackson'sJsonMapperto be used to serialize the@ConfigurationPropertiesobjects into aMapstructure.voidsetApplicationContext(org.springframework.context.ApplicationContext context)
-
Constructor Details
-
ConfigurationPropertiesReportEndpoint
public ConfigurationPropertiesReportEndpoint(Iterable<SanitizingFunction> sanitizingFunctions, Show showValues)
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext context) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
configurationProperties
@ReadOperation public ConfigurationPropertiesReportEndpoint.ConfigurationPropertiesDescriptor configurationProperties() -
configurationPropertiesWithPrefix
@ReadOperation public ConfigurationPropertiesReportEndpoint.ConfigurationPropertiesDescriptor configurationPropertiesWithPrefix(@Selector String prefix) -
configureJsonMapper
protected void configureJsonMapper(com.fasterxml.jackson.databind.json.JsonMapper.Builder builder) Configure Jackson'sJsonMapperto be used to serialize the@ConfigurationPropertiesobjects into aMapstructure.- Parameters:
builder- the json mapper builder- Since:
- 2.6.0
-