【问题标题】:How to customize Spring Boot Actuator endpoints如何自定义 Spring Boot Actuator 端点
【发布时间】:2015-02-22 20:21:36
【问题描述】:

我正在尝试在非“启动应用程序”上实现 Spring Boot Actuator,有没有办法为endpoint/healthendpoint/metrics 等端点配置模式?然后我将在我现有的 Spring Security 配置中创建第二个领域,我尝试了文档,但找不到相关内容。

谢谢。

【问题讨论】:

    标签: spring-boot


    【解决方案1】:

    你的意思是management.contextPath=/endpoint (docs here)?

    【讨论】:

    • 是的,但我认为因为它不是启动应用程序,它想读取属性文件,所以我创建了一个 ManagementServerProperties bean 并在那里设置了路径
    猜你喜欢
    • 2021-04-24
    • 1970-01-01
    • 2023-03-10
    • 2020-06-01
    • 2017-01-21
    • 2016-06-01
    • 1970-01-01
    • 2020-09-15
    • 2016-09-07
    相关资源
    最近更新 更多