![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
源码品读
文章平均质量分 92
阅读的源码记录
学疏才浅
有志者、事竟成,破釜沉舟,百二秦关终属楚;
苦心人、天不负,卧薪尝胆,三千越甲可吞吴。
展开
-
Ribbon策略模式源码品读
文章目录RandomRule源码解析RoundRobinRule源码解析RetryRule源码解析BestAvailableRule源码解析WeightedResponseTimeRule源码解析AvailabilityFilteringRule源码解析RandomRule源码解析首先进入RandomRule类中的public Server choose(ILoadBalancer lb, Object key)方法中,这个方法就是这策略的核心方法了public Server choose(ILoad原创 2021-01-07 14:58:26 · 203 阅读 · 0 评论 -
EUREKA服务注册源码品读
由于不同版本的springcloub源码可能会有一下差异,以下源代码都取自:springcloub的Greenwich.SR1版本服务注册流程分析首先先看`@EnableDiscoveryClient`这个注解,发现这个注解中并没有实现的代码,但是在这个注解中引用了一个`EnableDiscoveryClientImportSelector.class`这个类,那么我们就去这个类中看看都有些什么东西。/** Copyright 2012-2019 the original auth.原创 2021-01-05 15:31:11 · 288 阅读 · 2 评论 -
想知道你的SpringBoot是如何启动的吗?来看!
SpringBoot启动流程分析SpringBoot启动流程主要分两部分,一部分是在创建SpringApplication的时候,一部分是在Run方法里1.首先来看SpringApplication构造函数public SpringApplication(ResourceLoader resourceLoader, Class<?>... primarySources) {/...原创 2020-03-21 19:24:40 · 908 阅读 · 0 评论