I am able to access endpoints like http://localhost:8081/health
, /status
, /env
, /metrics
, /shutdown
but not /actuator
或 /loginfo
端点。
低于异常。
{"timestamp":1455929182552,"status":404,"error":"Not Found","message":"No message available","path":"/actuator"}
如何访问 http://localhost:8081/actuator 端点?
原文由 grkhyd 发布,翻译遵循 CC BY-SA 4.0 许可协议
从 Spring Boot 版本 2.0.1 开始,使用以下属性将起作用
如果您不关心安全性,您可以使用
*
通配符在 Web 上公开所有执行器端点。端点似乎也已从以前的版本中移出。例如。如果您想使用 bean,您现在将拥有
/actuator/beans
端点。只是为了确保查看此类端点的启动日志。
更多关于端点的信息可以在 这里 找到