摘要: 基本原理 上图是来自eureka的官方架构图,这是基于集群配置的eureka; - 处于不同节点的eureka通过Replicate进行数据同步 - Application Service为服务提供者 - Application Client为服务消费者 - Make Remote Call完成一次 阅读全文
posted @ 2019-10-12 23:09 9529 阅读(70) 评论(0) 推荐(0)
摘要: eureka: client: #客户端注册进eureka服务列表内 service-url: defaultZone: http://localhost:7001/eureka 阅读全文
posted @ 2019-10-12 20:41 9529 阅读(103) 评论(0) 推荐(0)
摘要: server: port: 3000 #端口 eureka: instance: hostname: localhost #eureka服务端的实例名称 client: register-with-eureka: false #false表示不向注册中心注册自己。 fetch-registry: f 阅读全文
posted @ 2019-10-12 20:39 9529 阅读(768) 评论(0) 推荐(0)
摘要: <!--eureka-server服务端 --> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-eureka-server</artifactId> </depen 阅读全文
posted @ 2019-10-12 20:37 9529 阅读(63) 评论(0) 推荐(0)
摘要: <!-- 将微服务provider侧注册进eureka --> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-eureka</artifactId> </depen 阅读全文
posted @ 2019-10-12 20:34 9529 阅读(87) 评论(0) 推荐(0)