摘要: 什么是网关 Zuul的主要功能是路由转发和过滤器。路由功能是微服务的一部分,比如/api/user转发到到user服务,/api/shop转发到到shop服务。zuul默认和Ribbon结合实现了负载均衡的功能, 类似于nginx转发。 依赖 <parent> <groupId>org.spring 阅读全文
posted @ 2019-12-20 10:59 慕容子月 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 目录 配置文件 application.yml eureka: client: service-url: defaultZone: http://localhost:8001/eureka server: port: 9001 spring: application: name: zuul ##配置 阅读全文
posted @ 2019-12-20 10:39 慕容子月 阅读(1602) 评论(0) 推荐(0) 编辑