- 博客(5)
- 收藏
- 关注
原创 Spring Cloud Eureka 核心源码之服务注册
看源码方法看源码首先要了解它的使用,如果不了解它技术的使用、或者特色的话、或者原理的话,你去看源码的话就没什么意义了。 ----MicEureka Server 如何接收请求通信接收请求的话,肯定会涉及到通信,一般来说,有http通信,socket通信(NIO、Netty)。服务端必然会监听请求Euraka提供了两个类 ApplicationsResource 和 ApplicationResource,这两个类会接收一些请求,类似controller。例如:基于appId路径的访问查
2020-12-29 17:57:02 644
原创 Spring Cloud服务调用
版本信息Spring Cloud : Hoxton.SR1Spring Boot : 2.2.2.RELEASEZookeeper : 3.5.6 (注册中心使用)OpenFeign核心apiFeign is a Java to HTTP client binder inspired by Retrofit, JAXRS-2.0,and WebSocketfeign.Feign 核心类feign.Contract 服务接口类的注解和值解析feign.Client 调用fe.
2020-12-29 14:57:12 247
原创 Spring Cloud服务熔断
版本信息Spring Cloud : Hoxton.SR1Spring Boot : 2.2.2.RELEASESpring Cloud Hystrix使用熔断策略THREAD — it executes on a separate thread and concurrent requests arelimited by the number of threads in the thread-poolSEMAPHORE — it executes on the calling th.
2020-12-28 17:36:37 1183 2
原创 Spring Cloud服务网关
版本信息Spring Cloud : Hoxton.SR1Spring Boot : 2.2.2.RELEASEZookeeper : 3.5.6 (注册中心使用)服务网关特性服务网关是干什么用的?认证安全(授权)动态路由基于RestTemplate自定义服务网关服务端演示提供服务1.添加pom依赖<dependency> <groupId>org.springframework.boot</groupId> &l.
2020-12-28 16:59:46 768
原创 Spring Cloud注册中心与服务发现
版本信息Spring Cloud : Hoxton.SR1Spring Boot : 2.2.2.RELEASEZookeeper : 3.5.6Consul : 1.6.3Nacos: 1.1.4核心apiorg.springframework.cloud.client.serviceregistry.ServiceRegistry 服务注册- org.springframework.cloud.client.serviceregistry.Registration 注册信息-
2020-12-25 17:08:45 1557
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人