配置属性 (configprops)
原文:https://docs.spring.io/spring-boot/api/rest/actuator/configprops.html
configprops 端点显示应用中所有 @ConfigurationProperties bean 的信息。
检索配置属性
向 /actuator/configprops 发出 GET 请求:
$ curl 'http://localhost:8080/actuator/configprops' -i -X GET
响应按上下文组织,每个 @ConfigurationProperties bean 包含 prefix(前缀)、properties(属性及其值)等信息。敏感值会经过清理。可以通过 ?showSecrets=true 显示敏感值(需配置),或通过 showValues 参数控制值显示。可用 ?showSecrets=... 等参数过滤。