【问题标题】:Actuator and Security执行器和安全性
【发布时间】:2018-04-11 16:06:26
【问题描述】:

使用gs-actuator-service 示例,我从actuator/info 端点得到{} 输出,而从actuator/health 端点得到{status="Ok"}

从网上阅读看来,如果用户通过身份验证,则会返回更多信息。我将安全启动器依赖项添加到“gs-actuator-service”示例中,但无法从端点获取更多信息。端点是否应该返回更多?如果是,我如何为示例添加安全性并获取附加信息?

【问题讨论】:

    标签: spring-security spring-boot-actuator


    【解决方案1】:

    找到获取更多信息的解决方案

    如果使用 gradle 添加以下内容

    springBoot {
        buildInfo()
    }
    

    有关详细信息,请参阅 https://docs.spring.io/spring-boot/docs/2.0.1.RELEASE/gradle-plugin/reference/html/ 的与执行器集成部分。

    【讨论】:

      猜你喜欢
      • 2020-01-03
      • 1970-01-01
      • 2016-02-10
      • 1970-01-01
      • 2018-07-09
      • 2014-02-12
      • 1970-01-01
      • 2021-02-04
      • 2016-08-26
      相关资源
      最近更新 更多