Spring actuator auditevents 端点在 Spring boot V2.0.0.M7 中不工作

Spring actuator auditevents endpoint is not working in Spring boot V2.0.0.M7

我正在尝试 spring 具有里程碑 V2.0.0.M7 的引导执行器。 除 /auditevents.

外,每个端点 (/beans,/metrics,/loggers) 都有效

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

management.endpoints.web.expose=*

但是/actuator/auditevents不工作

为什么会这样?

如有任何帮助,我们将不胜感激。

在 M7 中,after 查询参数 is required。你没有说 "not working" 的确切含义,但我猜你会收到 400 响应,告诉你你的请求是错误的。

使用 curl 发出的有效请求看起来像这样:

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