![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springCloud
雪儿waii
https://m.gitee.com/wangxuewaii
展开
-
学习springCloud杂记
系统默认的配置文件放置的地方 加载自己的配置文件的方法 package com.example.demo; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.spri...原创 2018-05-02 11:30:29 · 174 阅读 · 0 评论 -
ribbon详解
Ribbon简介 负载均衡框架,支持可插拔式的负载均衡规则 支持多种协议,如HTTP、UDP等 提供负载均衡客户端 Ribbon子模块 ribbon-core ribbon-eureka ribbon-httpclient 负载均衡器组件 一个负载均衡器,至少提供以下功能: 要维护各个服务器的IP等信息 根据特定逻辑选取服务器 为了实现基本的负载均衡功能,Ribbo...原创 2018-05-06 16:52:45 · 2837 阅读 · 0 评论 -
Eureka详解
eureka简单集群搭建 https://gitee.com/wangxuewaii/codes/zc0lj6emx5dgp2a813ors63 非集群eureka搭建 https://gitee.com/wangxuewaii/codes/zl8to65naewu4y02rsjk937 服务端配置 spring: application: name: ek-pol...原创 2018-05-06 18:57:58 · 450 阅读 · 0 评论 -
actuator
服务端引入依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </depen...原创 2018-05-06 21:21:58 · 502 阅读 · 0 评论 -
config
package com.example.demo; import static org.springframework.test.web.client.match.MockRestRequestMatchers.requestToUriTemplate; import org.springframework.beans.factory.annotation.Autowired; imp...原创 2018-05-14 14:43:50 · 233 阅读 · 0 评论