![](https://img-blog.csdnimg.cn/20200923101318774.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Spring Cloud
Spring Cloud 相关
shpunishment
这个作者很懒,什么都没留下…
展开
-
Spring Cloud Alibaba Seata (Hoxton版) 使用
文章目录1. 简介2. 安装2.1 nacos2.2 seata-server2.2.1 上传配置2.2.2 初始化数据库3. 使用3.1 准备数据库3.1 创建项目3.2.1 acount-service3.2.2 storage-service3.2.3 order-service1. 简介2. 安装2.1 nacos官网下载使用Windows启动时报错,修改startup.cmd的mode从cluster为standalone,还是启动失败。所以这里使用Linux。使用单体模式启动Nac原创 2020-09-30 17:58:24 · 674 阅读 · 0 评论 -
Spring Cloud Alibaba Sentinel (Hoxton版) 使用
文章目录1. 简介2. 安装3. 使用3.1 Nacos3.2 sentinel-service4. 测试4.1 限流4.2 熔断4.2.1 user-service4.2.2 sentinel-service4.3 结合OpenFeign4.4 Nacos存储规则Spring Cloud Hoxton.SR4 Spring Cloud Alibaba 2.2.2.RELEASE Spring Boot 2.3.0.RELEASE1. 简介2. 安装GitHub 下载启动Sentinel控原创 2020-09-28 17:03:43 · 762 阅读 · 0 评论 -
Spring Cloud Alibaba Nacos (Hoxton版) 使用
文章目录1. 简介2. 安装3. 使用3.1 注册中心3.1.1 user-service3.1.2 ribbon-service3.2 配置中心Spring Cloud Hoxton.SR4 Spring Cloud Alibaba 2.2.2.RELEASE Spring Boot 2.3.0.RELEASE1. 简介Spring Cloud Alibaba 致力于提供微服务开发的一站式解决方案,Nacos 作为其核心组件之一,可以作为注册中心和配置中心使用。Nacos 致力于帮助您发现原创 2020-09-28 11:00:19 · 387 阅读 · 0 评论 -
Spring Boot Admin 使用
文章目录1. 简介2. 使用2.1 单体2.1.1 admin-server2.1.2 admin-client2.2 结合注册中心2.2.1 eureka-server2.2.2 admin-server2.2.3 admin-client1. 简介Spring Boot Admin 可以对 SpringBoot 应用的各项指标进行监控,可以作为微服务架构中的监控中心来使用。通过 Actuator 来暴露应用运行过程中的各项指标,Spring Boot Admin通过这些指标来监控SpringBoot原创 2020-09-27 15:28:50 · 235 阅读 · 0 评论 -
Spring Cloud Consul (Hoxton版) 使用
文章目录1. 简介2 安装 Consul3. 使用3.1 注册中心3.1.1 user-service3.1.2 ribbon-service2.2 配置中心2.2.1 config-clientSpring Cloud Hoxton.SR4 Spring Boot 2.3.0.RELEASE1. 简介2 安装 Consul官网下载,这里使用Windows版测试。运行,访问http://localhost:8500。默认服务侦听地址只有127.0.0.1可访问,可添加参数-client 0.0原创 2020-09-25 18:06:13 · 202 阅读 · 0 评论 -
Spring Cloud Gateway (Hoxton版) 使用
文章目录1. 简介2. 基本概念3. 使用3.1 路由断言(Route Predicate)3.1.1 user-service3.1.2 api-gateway3.2 过滤器3.2.1 Hystrix GatewayFilter3.2.2 RequestRateLimiter GatewayFilter3.2.3 Retry GatewayFilter3.2.3.1 api-gateway3.2.3.2 user-service3.3 注册中心3.3.1 eureka-server3.3.1 user-s原创 2020-09-25 10:24:35 · 402 阅读 · 0 评论 -
Spring Cloud Sleuth (Hoxton版) 使用
文章目录1. 简介2. 使用2.1 zipkin-server2.2 eureka-server,user-service,ribbon-service3. 测试1. 简介Spring Cloud Sleuth 是分布式系统中跟踪服务间调用的工具,它可以直观地展示出一次请求的调用过程。随着我们的系统越来越庞大,各个服务间的调用关系也变得越来越复杂。当客户端发起一个请求时,这个请求经过多个服务后,最终返回了结果,经过的每一个服务都有可能发生延迟或错误,从而导致请求失败。通过请求链路跟踪工具,可以帮助我们原创 2020-09-23 15:33:21 · 289 阅读 · 0 评论 -
Spring Cloud Config (Hoxton版) 使用
文章目录1. 简介2. 使用2.1 eureka-server2.2 独立模式2.2.1 config-server2.2.2 config-client2.3 添加认证2.3.1 config-server2.3.2 config-client2.4 多个配置中心2.4.1 config-server2.4.2 config-client1. 简介Spring Cloud Config 可以为微服务架构中的应用提供集中化的外部配置支持,它分为服务端和客户端两个部分。服务端被称为分布式配置中心,它是个独原创 2020-09-22 09:42:59 · 218 阅读 · 0 评论 -
Spring Cloud Netfix Zuul (Hoxton版) 使用
文章目录1. 简介2. 使用2.1 eureka-server,user-service,openfeign-service2.2 zuul-proxy2.2.1 路由2.2.2 过滤器1. 简介路由与过滤是Zuul的两大核心功能,路由功能负责将外部请求转发到具体的服务实例上去,是实现统一访问入口的基础,过滤功能负责对请求过程进行额外的处理,是请求校验过滤及服务聚合的基础。2. 使用先用IDEA创建一个Spring Boot的项目,可以随意引用一个Spring Cloud的组件,之后也会删掉。创建原创 2020-09-21 16:00:11 · 206 阅读 · 0 评论 -
Spring Cloud OpenFeign (Hoxton版) 使用
文章目录1. 简介2. 使用2.1 eureka-server2.2 user-service2.3 openfeign-serviceSpring Cloud Hoxton.SR4 Spring Boot 2.3.0.RELEASE1. 简介Spring Cloud OpenFeign 是声明式的服务调用工具,它集成了Ribbon、Hystrix、Eureka和Spring Cloud LoadBalancer,以在使用Feign时提供负载平衡和服务容错的http客户端。2. 使用先用IDE原创 2020-09-21 14:02:32 · 351 阅读 · 0 评论 -
Spring Cloud Netfix Hystrix (Hoxton版) 使用
文章目录1. 使用1.1 eureka-server1.2 user-service1.3 hystrix-service2. 测试2.1 服务降级2.2 请求缓存2.3 请求合并Spring Cloud Hoxton.SR4 Spring Boot 2.3.0.RELEASE先用IDEA创建一个Spring Boot的项目,可以随意引用一个Spring Cloud的组件,之后也会删掉。创建完,删掉除了pom.xml以外的其他文件,再修改pom.xml<?xml version="1.0" e原创 2020-09-21 10:53:01 · 176 阅读 · 0 评论 -
Spring Cloud Netfix Ribbon (Hoxton版) 使用
文章目录1. 使用1.1 eureka-server1.2 user-service1.3 ribbon-service4. 测试5. 负载均衡策略Spring Cloud Hoxton.SR4 Spring Boot 2.3.0.RELEASE先用IDEA创建一个Spring Boot的项目,可以随意引用一个Spring Cloud的组件,之后也会删掉。创建完,删掉除了pom.xml以外的其他文件,再修改pom.xml<?xml version="1.0" encoding="UTF-8"?原创 2020-09-18 16:31:33 · 162 阅读 · 0 评论 -
Spring Cloud Netfix Eureka (Hoxton版) 使用
文章目录1. 单个注册中心1.1 eureka-server1.2 eureka-client2. 多个注册中心2.1 eureka-server2.2 eureka-client3. 添加认证3.1 eureka-server3.2 eureka-client先用IDEA创建一个Spring Boot的项目,可以随意引用一个Spring Cloud的组件,反正后续也会删掉。创建完,删掉除了pom.xml以外的其他文件,再修改pom.xml<?xml version="1.0" encoding原创 2020-09-18 13:50:34 · 341 阅读 · 0 评论