
springcloud
文章平均质量分 96
黑桃️
此人不懒,只是不知道写什么
展开
-
SpringCloud 【七】消息驱动(Stream) 和 分布式链路跟踪(Sleuth)
Stream 和 Sleuth???? SpringCloud Stream消息驱动一、消息驱动概述(1) 是什么(2) 设计思想① 标准MQ② 为什么用CloudStream③ Stream中的消息通讯方式遵循了发布-订阅模式(3) Springcloud Stream标准流程套路(4) 编码API和常用注解二、案例说明三、消息驱动之生产者(1) 新建模块:cloud-stream-rabbitmq-provider8801(2) 配置 pom.xml(3) 配置 application.yml(4) 创原创 2021-06-13 19:47:49 · 1187 阅读 · 1 评论 -
SpringCloud 【六】 服务配置(Config) 和 服务总线(Bus)
这里写自定义目录标题???? config分布式配置中心一、概述(1) 分布式系统面临的问题--配置问题(2) 是什么(3) 能干嘛(4) 与 GitHub/Gitee 整合配置(5) 官网二、Config服务端配置与测试(1) 在Gitee上新建一个名为springcloud-config的新Respository(以Gitee为例)(2) 由上一步获得刚新建的 git 地址(3) 本地硬盘目录上新建 Git 仓库并 clone(4) 新建模块 cloud-config-center-3344(5) 配置原创 2021-06-11 13:30:21 · 1586 阅读 · 2 评论 -
SpringCloud【五】 --- 服务网关 (Gateway)
服务网关???? Gateway 新一代网关一、概述简介(1) 官网① 上一代zuul 1.x② 当前gateway(2) 是什么① 概述② 一句话(3) 能干嘛(4) 微服务架构中网关在哪里(5) 有Zuull了怎么又出来gateway① 我们为什么选择Gateway?② Zuul1.x模型③ Gateway模型二、三大核心概念(1) Route(路由)(2) Predicate(断言)(3) Filter(过滤)(4) 总结三、Gateway工作流程(1) 官网总结(2) 核心逻辑四、入门配置(1) 新原创 2021-06-09 11:31:24 · 420 阅读 · 0 评论 -
SpringCloud 【四】 --- 服务降级 ( Hystrix熔断器 )
服务降级Hystrix熔断器???? 概述(1) 分布式系统面临的问题(2) 是什么(3) 能干嘛(4) 官网资料(5) Hystrix官宣,停更进维???? HyStrix重要概念(1) 服务降级产生的原因(2) 服务熔断(3) 服务限流???? hystrix案例(1) 构建① 新建模块 cloud-provider-hystrix-payment8001② 配置 pom.xml③ 配置 application.yml④ 创建主启动类⑤ Service:PaymentService⑥ Controlle原创 2021-06-08 15:18:04 · 793 阅读 · 0 评论 -
SpringCloud 【三】 --- 服务调用 (Ribbon,OpenFeign)
服务调用一、Ribbon 负载均衡调用???? 概述(1) 是什么(2) 官网资料(3) 能干嘛???? Ribbon 负载均衡演示(1) 架构说明(2) POM(3) 二说RestTemplate的使用① 官网② getForObject方法 / getForEntity方法 (Get 请求方法)???? Ribbon 核心组件 IRule(1) IRule:根据特定算法从服务列表中选取一个要访问的服务(2) 如何替换① 修改cloud-consumer-order80② 注意配置细节③ 新建包 myr原创 2021-06-06 19:58:03 · 2369 阅读 · 5 评论 -
SpringCloud 【二】 --- 服务注册中心 (Eureka、Zookeeper、Consul)
服务注册中心一、Eureka服务注册与发现 (×)单机Eureka构建步骤(1) EurekaServer 服务端搭建① 新建模块 cloud-eureka-server7001② 配置 pom.xml③ 配置 application.yml④ 主启动类⑤ 测试(2) 将支付微服务8001注册到 EurekaServer① 添加依赖到pom.xml② 添加配置到 application.yml③ 主启动类上加注解 @EnableEurekaClient④ 测试(3) 将订单微服务80注册到 EurekaSe原创 2021-06-05 13:02:23 · 2081 阅读 · 4 评论 -
SpringCloud【一】 --- Rest微服务工程搭建
SpringCloud一、创建父工程(1) 父工程项目创建(2) 父工程 pom.xml 配置二、支付模块构建(上)(1) 创建模块 cloud-provider-payment8001(2) 配置 pom.xml(3) 配置 application.yml(4) 创建主启动类三、支付模块构建(中)(5) 创建业务类① 建表SQL语句② 实体类:Payment③ 通用实体类 CommonResult④ DAO层:PaymentDao接口⑤ PaymentMapper.xml⑥ Service层:Paymen原创 2021-06-01 10:38:56 · 836 阅读 · 1 评论