【问题标题】:Spring boot actuator endpoints.sensitive stop working in newer versionSpring Boot actuator endpoints.sensitive 在较新版本中停止工作
【发布时间】:2017-12-01 11:44:13
【问题描述】:

在 Spring Boot 版本 2.0.0.M4 中设置属性 endpoints.sensitive 时,我在代码中出现以下警告。我现在如何配置它?

【问题讨论】:

    标签: java spring spring-boot spring-boot-actuator


    【解决方案1】:

    默认情况下,执行器端点暴露在同一个端口上 提供常规的 HTTP 流量。注意不要意外暴露 如果您更改 management.security.enabled 敏感信息 属性。

    对于 2.0.0.M4:Securing endpoints

    【讨论】:

    • 实际上是一个文档 sn-p。但我需要一些东西来避免这种情况。
    • 可能试图使用属性management.security.enabled 而不是endpoints.sensitive
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-09-07
    • 2017-03-23
    • 2018-06-17
    • 1970-01-01
    • 2017-08-24
    • 2021-04-04
    • 1970-01-01
    相关资源
    最近更新 更多