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
  • 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:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException
    • configurationProperties

    • configurationPropertiesWithPrefix

    • configureJsonMapper

      protected void configureJsonMapper(com.fasterxml.jackson.databind.json.JsonMapper.Builder builder)
      Configure Jackson's JsonMapper to be used to serialize the @ConfigurationProperties objects into a Map structure.
      Parameters:
      builder - the json mapper builder
      Since:
      2.6.0