![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
微服务
Winyar Wen
这个作者很懒,什么都没留下…
展开
-
利用SpringCloud搭建微服务1——注册中心Eureka组件的使用
搭建Eureka服务注册中心1 maven quickstart2 pom依赖(springboot的版本必须和springcloud版本兼容)3 配置application.properties (实现注册中心的内容)server.port=8000eureka.instance.hostname=localhost//当这个域名能够访问到注册中心所在的服务器时,可以被注册中心监...原创 2018-12-31 19:35:48 · 141 阅读 · 0 评论 -
利用SpringCloud搭建微服务2——负载均衡Ribbon组件的使用
**Ribbon组件: 实现客户端负载均衡。**配置文件application.propertieseureka.client.serviceUrl.defaultZone=http://localhost:8000/eureka/server.port=9003spring.application.name=service-ribbon启动类代码如下:import org.sp...原创 2018-12-31 19:48:37 · 136 阅读 · 0 评论 -
利用SpringCloud搭建微服务3——服务容错组件Hystrix与负载均衡组件Ribbon的结合使用
配置文件application.propertieseureka.client.serviceUrl.defaultZone=http://localhost:8000/eureka/server.port=9005spring.application.name=service-ribbon-hystrix启动类代码如下:import org.springframework.boot....原创 2019-01-05 09:08:22 · 208 阅读 · 1 评论 -
利用SpringCloud搭建微服务4——服务调用组件Fegin的使用,引入API网关治理组件Zuul
配置文件application.propertieseureka.client.serviceUrl.defaultZone=http://localhost:8000/eureka/server.port=9004spring.application.name=service-feign启动类代码如下:import org.springframework.boot.SpringApp...原创 2019-01-05 09:07:56 · 459 阅读 · 0 评论