我能够访问端点,如http://localhost:8081/health、/status、/env、/metrics、/shutdown,但不是 /actuator或/loginfo端点。
在异常之下。
{"timestamp":1455929182552,"status":404,"error":"Not Found","message":"No message available","path":"/actuator"}如何访问http://localhost:8081/actuator端点?
发布于 2018-04-19 05:25:06
从春季启动版本2.0.1开始,使用下面的属性就可以了
management.endpoints.web.exposure.include=<comma separated endpoints you wish to expose>如果您不关心安全性,您可以使用*通配符在web上公开所有执行器端点。
此外,端点似乎已经从以前的版本中移开了。为了前夫。如果您希望使用bean,那么现在就有了/actuator/beans端点。
为了确保查看这类端点的启动日志。
关于端点的更多信息可以找到这里。
发布于 2018-12-09 11:02:04
如果键入http://localhost:8080/actuator/,yo将得到默认情况下已公开的端点列表(3个端点),因此为了公开所有端点,必须在application.properties/yml文件中添加以下内容:
management.endpoints.web.exposure.include=*发布于 2019-07-02 08:29:23
看起来,您将Actuator端点映射到基本路径/。检查配置中是否有以下行:
management.endpoints.web.base-path=/因此,如果省略这一行,那么您将访问actuator路径下的所有端点,例如:
http://localhost:8081/actuator/health执行器本身也可以在这里访问:
http://localhost:8081/actuatorhttps://stackoverflow.com/questions/35517713
复制相似问题