我能够访问 http://localhost:8081/health
、/status
、/env
、 等端点/metrics
、/shutdown
但 not /actuator
或 /loginfo
端点。
遇到异常。
{"timestamp":1455929182552,"status":404,"error":"Not Found","message":"No message available","path":"/actuator"}
如何访问http://localhost:8081/actuator端点?
最佳答案
从 Spring Boot 版本 2.0.1 开始,使用以下属性将起作用
management.endpoints.web.exposure.include=<comma separated endpoints you wish to expose>
如果您不关心安全性,您可以使用 *
通配符通过网络公开所有执行器端点。
端点似乎也从以前的版本中移动了。例如。如果您想使用 bean,您现在将拥有 /actuator/beans
端点。
只是为了确保查看此类端点的启动日志。
可以找到更多关于端点的信息 here
关于spring - 无法访问 Spring Boot Actuator "/actuator"端点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35517713/