2020年6月26日

springCloud(十三) spring cloud api网关 -zuul

摘要: 1: 相关图片 2:项目配置 1: pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/ 阅读全文

posted @ 2020-06-26 14:02 顾~小诺 阅读(269) 评论(0) 推荐(0) 编辑

springCloud(十二) hystrix dashboard

摘要: 被监控端 1: 在微服务上pom.xml 引入依赖 <dependency> <groupId>com.netflix.hystrix</groupId> <artifactId>hystrix-metrics-event-stream</artifactId> <version>1.5.18</v 阅读全文

posted @ 2020-06-26 11:36 顾~小诺 阅读(188) 评论(0) 推荐(0) 编辑

springCloud(十一) hystrix 超时设置

摘要: eureka: client: service-url: defaultZone: http://localhost:8761/eureka spring: application: name: member-service feign: hystrix: enabled: true client: 阅读全文

posted @ 2020-06-26 10:42 顾~小诺 阅读(777) 评论(0) 推荐(0) 编辑

2020年6月13日

springCloud(十) hystrix 和 openFeign 整合

摘要: #1.开启hystrix 添加了 openfeign 包 默认集成了 hystrix。只需要开启开关 server: port: 9080 spring: application: name: member-service-openfeign eureka: client: service-url: 阅读全文

posted @ 2020-06-13 23:05 顾~小诺 阅读(1665) 评论(0) 推荐(0) 编辑

springCloud(九) hystrix 和 restTemplate 整合

摘要: #1.pom.xml <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-hystrix</artifactId> </dependency> #2.启用 阅读全文

posted @ 2020-06-13 21:54 顾~小诺 阅读(379) 评论(0) 推荐(0) 编辑

2020年6月9日

springCloud(八) hystrix 简单流程图示

摘要: ![](https://img2020.cnblogs.com/blog/2025974/202006/2025974-20200609222144940-872136906.png) ![](https://img2020.cnblogs.com/blog/2025974/202006/2025974-20200609223000469-964329787.png) ![](https://im 阅读全文

posted @ 2020-06-09 22:22 顾~小诺 阅读(217) 评论(0) 推荐(0) 编辑

2020年6月2日

springCloud(七) OpenFeign 通信日志-GET/POST请求

摘要: #1.开启通信日志-打印日志 1.1 日志级别 1.2 application.yml eureka: client: service-url: defaultZone: http://localhost:8761/eureka spring: application: name: member-s 阅读全文

posted @ 2020-06-02 21:30 顾~小诺 阅读(1492) 评论(0) 推荐(0) 编辑

2020年6月1日

springCloud(六) OpenFeign声明式通信

摘要: #1.Feign 和 openFeign 的区别 1.1 Feign 是一个开源声名式WebService框架 ,用于简化服务通信 1.2 Feign 采用 “接口” + "注解" 方式开发,屏蔽了网络通信的细节 1.3 OpenFeign 是springCloud 对 Feign 的加强,支持 S 阅读全文

posted @ 2020-06-01 22:39 顾~小诺 阅读(481) 评论(0) 推荐(0) 编辑

2020年5月30日

springCloud(五) RestTemplate通信 和 Ribbon 客户端负载均衡

摘要: #1.客户端负载均衡图解 #微服务端进行通信 使用RestTemplate 和 LoadBalanced 注解通信 pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4 阅读全文

posted @ 2020-05-30 22:04 顾~小诺 阅读(402) 评论(0) 推荐(0) 编辑

2020年5月21日

springCloud(四) eureka 高可用

摘要: 1: eureka 服务端配置 application.p8761.yml application.p8762.yml 注意:server1 和 server2 都映射到127.0.0.1 。 defaultZone 均写对方都eureka 地址 2: eureka 客户端配置 此时 高可用配置完成 阅读全文

posted @ 2020-05-21 22:35 顾~小诺 阅读(150) 评论(0) 推荐(0) 编辑

导航