摘要: 说明: sentinel可以作为各微服务的限流,也可以作为gateway网关的限流组件。 spring cloud gateway有限流功能,但此处用sentinel来作为替待。 说明:sentinel流控可以放在gateway网关端,也可以放在各微服务端。 1,以父工程为基础,创建子工程 2,添加 阅读全文
posted @ 2020-01-21 20:37 王东波 阅读(1880) 评论(0) 推荐(0) 编辑
摘要: 1, 基于父工程,新建一个模块 2,pom文件添加依赖 <dependencies> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-gateway</artifac 阅读全文
posted @ 2020-01-21 18:09 王东波 阅读(391) 评论(0) 推荐(0) 编辑