【问题标题】:Spring actuator auditevents endpoint is not working in Spring boot V2.0.0.M7Spring actuator auditevents 端点在 Spring boot V2.0.0.M7 中不起作用
【发布时间】:2018-01-25 12:01:32
【问题描述】:

我正在尝试具有里程碑 V2.0.0.M7 的弹簧启动执行器。 除了/auditevents,每个端点(/beans,/metrics,/loggers)都可以工作。

我已将此属性添加到application.properties 文件中。

management.endpoints.web.expose=*

但是/actuator/auditevents 不工作

为什么会这样?

任何帮助将不胜感激。

【问题讨论】:

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


    【解决方案1】:

    在 M7 中,after 查询参数is required。您还没有说出“不工作”的确切含义,但我猜您会收到 400 响应,告诉您您的请求不正确。

    使用curl 发出的有效请求如下所示:

    curl http://localhost:8080/actuator/auditevents?after=2017-11-30T04%3A54%3A40.25Z
    

    【讨论】:

    • 工作!!非常感谢!!这个执行器可以与spring boot admin 一起使用吗?(我问的是因为网址已更改)
    猜你喜欢
    • 2018-06-19
    • 1970-01-01
    • 2019-03-13
    • 2020-03-25
    • 2020-09-15
    • 2016-06-01
    • 1970-01-01
    • 1970-01-01
    • 2016-09-07
    相关资源
    最近更新 更多