作者:尹吉欢
来源:猿天地
1. /routes 端点
当@EnableZuulProxy与Spring Boot Actuator配合使用时,Zuul会暴露一个路由管理端点/routes。
借助这个端点,可以方便、直观地查看以及管理Zuul的路由。
将所有端点都暴露出来,增加下面的配置:
management.endpoints.web.exposure.include=*访问 http://localhost:2103/actuator/routes 可以显示所有路由信息:
{ "/cxytiandi/**": "http://cxytiandi.com", "/hystrix-api/**": "hystrix-feign-demo""/api/**": "forward:/local","/hystrix-feign-demo 继续阅读与本文标签相同的文章
上一篇 :
Apollo服务端设计原理剖析
下一篇 :
微服务中如何使用API组合模式进行查询?
-
Istio的架构设计
2026-05-18栏目: 教程
-
深度学习高能干货:手把手教你搭建MXNet框架
2026-05-18栏目: 教程
-
mac彻底卸载应用
2026-05-18栏目: 教程
-
如何在微服务架构中实现安全性?
2026-05-18栏目: 教程
-
微服务需要拆分到什么程度?
2026-05-18栏目: 教程
