请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

/actuator/gateway 访问404

http://localhost:8041/actuator
{"_links":{“self”:{“href”:“http://localhost:8041/actuator",“templated”:false},“archaius”:{“href”:“http://localhost:8041/actuator/archaius”,“templated”:false},“nacos-discovery”:{“href”:“http://localhost:8041/actuator/nacos-discovery”,“templated”:false},“auditevents”:{“href”:“http://localhost:8041/actuator/auditevents”,“templated”:false},“beans”:{“href”:“http://localhost:8041/actuator/beans”,“templated”:false},“caches-cache”:{“href”:“http://localhost:8041/actuator/caches/{cache}”,“templated”:true},“caches”:{“href”:“http://localhost:8041/actuator/caches”,“templated”:false},“health”:{“href”:“http://localhost:8041/actuator/health”,“templated”:false},“health-component”:{“href”:“http://localhost:8041/actuator/health/{component}”,“templated”:true},“health-component-instance”:{“href”:“http://localhost:8041/actuator/health/{component}/{instance}”,“templated”:true},“conditions”:{“href”:“http://localhost:8041/actuator/conditions”,“templated”:false},“configprops”:{“href”:“http://localhost:8041/actuator/configprops”,“templated”:false},“env”:{“href”:“http://localhost:8041/actuator/env”,“templated”:false},“env-toMatch”:{“href”:“http://localhost:8041/actuator/env/{toMatch}”,“templated”:true},“info”:{“href”:“http://localhost:8041/actuator/info”,“templated”:false},“loggers-name”:{“href”:“http://localhost:8041/actuator/loggers/{name}”,“templated”:true},“loggers”:{“href”:“http://localhost:8041/actuator/loggers”,“templated”:false},“heapdump”:{“href”:“http://localhost:8041/actuator/heapdump”,“templated”:false},“threaddump”:{“href”:“http://localhost:8041/actuator/threaddump”,“templated”:false},“metrics”:{“href”:“http://localhost:8041/actuator/metrics”,“templated”:false},“metrics-requiredMetricName”:{“href”:“http://localhost:8041/actuator/metrics/{requiredMetricName}”,“templated”:true},“scheduledtasks”:{“href”:“http://localhost:8041/actuator/scheduledtasks”,“templated”:false},“httptrace”:{“href”:“http://localhost:8041/actuator/httptrace”,“templated”:false},“mappings”:{“href”:“http://localhost:8041/actuator/mappings”,“templated”:false},“refresh”:{“href”:“http://localhost:8041/actuator/refresh”,“templated”:false},“features”:{“href”:“http://localhost:8041/actuator/features”,“templated”:false},“service-registry”:{“href”:“http://localhost:8041/actuator/service-registry”,“templated”:false},“gateway”:{“href”:“http://localhost:8041/actuator/gateway”,"templated”:false}}}
但是访问
http://localhost:8041/actuator/gateway 404

yam配置文件中是这样的
management:
endpoints:
web:
exposure:
include: '*'
endpoint:
gateway:
enabled: true
health:
show-details: always

环境的版本: spring boot 2.1.13.RELEASE spring cloud Greenwich.SR5 spring cloud alibaba 2.1.1.RELEASE

正在回答 回答被采纳积分+3

2回答

慕娘2474336 2020-12-09 17:39:19

请问解决了吗,遇到了同样的问题

0 回复 有任何疑惑可以回复我~
  • 大目 #1
    http://www.imooc.com/article/290822 看看这篇文章哈。
    回复 有任何疑惑可以回复我~ 2020-12-09 21:06:26
大目 2020-05-01 16:08:53

没有/actuator/gateway这个端点。

监控端点如文章 http://www.imooc.com/article/290822 所示。

配套讲解,详见《10-12》一节。


0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号