类 ConfigurationPropertiesReportEndpoint

  • 所有已实现的接口:
    org.springframework.beans.factory.Aware, Endpoint<Map<String,​Object>>, org.springframework.context.ApplicationContextAware, org.springframework.context.EnvironmentAware

    @ConfigurationProperties(prefix="endpoints.configprops")
    public class ConfigurationPropertiesReportEndpoint
    extends AbstractEndpoint<Map<String,​Object>>
    implements org.springframework.context.ApplicationContextAware
    Endpoint to expose application properties from ConfigurationProperties annotated beans.

    To protect sensitive information from being exposed, certain property values are masked if their names end with a set of configurable values (default "password" and "secret"). Configure property names by using endpoints.configprops.keys_to_sanitize in your Spring Boot application configuration.

    • 方法详细资料

      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext context)
                                   throws org.springframework.beans.BeansException
        指定者:
        setApplicationContext 在接口中 org.springframework.context.ApplicationContextAware
        抛出:
        org.springframework.beans.BeansException
      • extract

        protected Map<String,​Objectextract​(org.springframework.context.ApplicationContext context)
        Extract beans annotated ConfigurationProperties and serialize into Map.
        参数:
        context - the application context
        返回:
        the beans
      • configureObjectMapper

        protected void configureObjectMapper​(com.fasterxml.jackson.databind.ObjectMapper mapper)
        Configure Jackson's ObjectMapper to be used to serialize the ConfigurationProperties objects into a Map structure.
        参数:
        mapper - the object mapper