摘要: 请求这个controller,会负载均衡到不同的消费提供者微服务http://localhost:8764/hi?name=ye demo服务注册中心服务器 package com.example.demo; import org.springframework.boot.SpringApplica 阅读全文
posted @ 2018-03-08 19:36 和美信息叶育生博文 阅读(360) 评论(0) 推荐(0) 编辑
摘要: 史上最简单的 SpringCloud 教程 | 第一篇: 服务的注册与发现(Eureka):http://blog.csdn.net/forezp/article/details/69696915 史上最简单的SpringCloud教程 | 第二篇: 服务消费者(rest+ribbon):http: 阅读全文
posted @ 2018-03-08 18:26 和美信息叶育生博文 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 一、服务注册发现服务器 application.yml server: port: 8888 #指定服务端口eureka: client: registerWithEureka: false #是否将eureka自身作为应用注册到eureka注册中心 fetchRegistry: false #为t 阅读全文
posted @ 2018-03-08 16:49 和美信息叶育生博文 阅读(208) 评论(0) 推荐(0) 编辑
摘要: Spring Cloud Eureka详解 一 Eureka服务治理体系 1.1 服务治理 服务治理是微服务架构中最为核心和基础的模块,它主要用来实现各个微服务实例的自动化注册和发现。 Spring Cloud Eureka是Spring Cloud Netflix微服务套件中的一部分,它基于Net 阅读全文
posted @ 2018-03-08 13:42 和美信息叶育生博文 阅读(2239) 评论(0) 推荐(0) 编辑