Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ebb2bca

Browse files
committed
图片问题修复
1 parent 349f39e commit ebb2bca

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

docs/Spring/2_SpringIoC原理.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,25 @@ IOC,即控制反转(Inverse of Control)是一种**设计思想**,并不
1919

2020
可这样表示:
2121

22-
<div align="center"><img src="https://gitee.com/duhouan/ImagePro/raw/master/java-notes/spring/ioc_1.png" width="700px"/></div>
22+
<div align="center"><img src="https://github.com/DuHouAn/ImagePro/raw/master/java-notes/spring/ioc_1.png" width="700px"/></div>
2323

2424
相应代码代码:
2525

26-
<div align="center"><img src="https://gitee.com/duhouan/ImagePro/raw/master/java-notes/spring/ioc_2.png" width="700px"/></div>
26+
<div align="center"><img src="https://github.com/DuHouAn/ImagePro/raw/master/java-notes/spring/ioc_2.png" width="700px"/></div>
2727

2828
size 是固定值,可以进行相应的改进:
2929

30-
<div align="center"><img src="https://gitee.com/duhouan/ImagePro/raw/master/java-notes/spring/ioc_3.png" width="700px"/></div>
30+
<div align="center"><img src="https://github.com/DuHouAn/ImagePro/raw/master/java-notes/spring/ioc_3.png" width="700px"/></div>
3131

3232
**依赖注入设计思路**
3333

3434
先设计行李箱的大概样子,再根据行李箱的样子设计箱体,根据箱体去设计底盘,然后去设计轮子。
3535

36-
<div align="center"><img src="https://gitee.com/duhouan/ImagePro/raw/master/java-notes/spring/ioc_4.png" width="700px"/></div>
36+
<div align="center"><img src="https://github.com/DuHouAn/ImagePro/raw/master/java-notes/spring/ioc_4.png" width="700px"/></div>
3737

3838
相应代码如下:
3939

40-
<div align="center"><img src="https://gitee.com/duhouan/ImagePro/raw/master/java-notes/spring/ioc_5.png" width="700px"/></div>
40+
<div align="center"><img src="https://github.com/DuHouAn/ImagePro/raw/master/java-notes/spring/ioc_5.png" width="700px"/></div>
4141

4242
不难理解,依赖注入就是**将底层类作为参数传递给上层类,实现上层对下层的控制**
4343

@@ -145,7 +145,7 @@ public class ExampleBean {
145145

146146
依赖倒置原则、IoC、DI 和 IoC 容器的关系:
147147

148-
<div align="center"><img src="https://gitee.com/duhouan/ImagePro/raw/master/java-notes/spring/ioc_7.png" width="700px"/></div>
148+
<div align="center"><img src="https://github.com/DuHouAn/ImagePro/raw/master/java-notes/spring/ioc_7.png" width="700px"/></div>
149149

150150
补充:[控制反转-知乎解答](https://www.zhihu.com/question/23277575/answer/169698662)
151151

@@ -173,15 +173,15 @@ Spring IoC 容器的代表就是 `org.springframework.beans` 包下的 **BeanFac
173173

174174
### IoC 容器初始化过程
175175

176-
<div align="center"><img src="https://gitee.com/duhouan/ImagePro/raw/master/java-notes/spring/01_1.png" width="700px"/></div>
176+
<div align="center"><img src="https://github.com/DuHouAn/ImagePro/raw/master/java-notes/spring/01_1.png" width="700px"/></div>
177177

178178
- Resource 定位:即 BeanDefinition 的资源定位,Resource 为各种形式的 BeanDefinition 的使用都提供了统一的接口
179179
- BeanDefinition 的载入
180180
- 向 IoC 容器中注册 BeanDefinition:实际上 IoC 容器内部维护一个 HashMap,注册过程就是将 BeanDefinition 添加至 HashMap 中。
181181

182182
### Spring Bean 的装配流程
183183

184-
<div align="center"><img src="https://gitee.com/duhouan/ImagePro/raw/master/java-notes/spring/ioc_11.png" width="700px"/></div>
184+
<div align="center"><img src="https://github.com/DuHouAn/ImagePro/raw/master/java-notes/spring/ioc_11.png" width="700px"/></div>
185185

186186
IoC 容器其实就是一个大工厂,它用来管理我们所有的对象以及依赖关系:
187187

@@ -325,7 +325,7 @@ globalSession 作用域**类似于标准的 HTTP session** 作用域, 不过
325325

326326
Spring bean 的生命周期执行如下图:
327327

328-
<div align="center"><img src="https://gitee.com/duhouan/ImagePro/raw/master/java-notes/spring/spring_1.png" width='450px'/></div>
328+
<div align="center"><img src="https://github.com/DuHouAn/ImagePro/raw/master/java-notes/spring/spring_1.png" width='450px'/></div>
329329

330330
1、Spring 对 Bean 进行实例化。
331331

docs/Spring/4_SpringMVC原理.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Spring MVC 框架是以请求为驱动,围绕 **DispatcherServlet** 设计,
3636

3737
原理图如下:
3838

39-
<div align="center"><img src="https://gitee.com/duhouan/ImagePro/raw/master/java-notes/spring/springmvc_1.png" width="750px"/></div>
39+
<div align="center"><img src="https://github.com/DuHouAn/ImagePro/raw/master/java-notes/spring/springmvc_1.png" width="750px"/></div>
4040

4141
- 客户端发起 HTTP 请求,将请求提交到 DispatcherServlet。
4242
- 寻找处理器:由 DispatcherServlet 查询一个或多个 HandlerMapping,找到处理该请求的 Contoller。

docs/Spring/7_MyBatis.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Mapper 接口的实例是从 SqlSession 中获取,作用是发送 SQL,然后
5252

5353
## 功能架构
5454

55-
<div align="center"><img src="https://gitee.com/duhouan/ImagePro/raw/master/java-notes/spring/mybatis_1.png"/></div>
55+
<div align="center"><img src="https://github.com/DuHouAn/ImagePro/raw/master/java-notes/spring/mybatis_1.png"/></div>
5656

5757
### 接口层
5858

@@ -91,13 +91,13 @@ Mapper 接口的实例是从 SqlSession 中获取,作用是发送 SQL,然后
9191

9292
- MappedStatement 对 SQL 执行输出结果进行定义,包括 HashMap、基本类型、pojo,Executor 通过MappedStatement 在执行 SQL 后将输出结果映射至 Java对象中,输出结果映射过程相当于 jdbc 编程中对结果的解析处理过程。
9393

94-
<div align="center"><img src="https://gitee.com/duhouan/ImagePro/raw/master/java-notes/spring/mybatis_2.png"/></div>
94+
<div align="center"><img src="https://github.com/DuHouAn/ImagePro/raw/master/java-notes/spring/mybatis_2.png"/></div>
9595

9696
## 缓存机制
9797

9898
MyBatis 的缓存分为一级缓存和二级缓存。默认情况下一级缓存是开启的。
9999

100-
<div align="center"><img src="https://gitee.com/duhouan/ImagePro/raw/master/java-notes/spring/mybatis_3.png"/></div>
100+
<div align="center"><img src="https://github.com/DuHouAn/ImagePro/raw/master/java-notes/spring/mybatis_3.png"/></div>
101101

102102
### 一级缓存
103103

docs/Zookeeper/2_数据模型.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ZooKeeper 的每个节点不经存储了数据信息,同时提供对节点信
66

77
每个节点还可以拥有 N 个子节点,最上层是根节点以“/”来代表,Zookeeper 的数据模型如下图:
88

9-
<div align='center'><img src='https://gitee.com/duhouan/ImagePro/raw/master/zookeeper/z_1.png'/></div>
9+
<div align='center'><img src='https://github.com/DuHouAn/ImagePro/raw/master/zookeeper/z_1.png'/></div>
1010

1111
## Znode 数据模型
1212

docs/Zookeeper/3_原理.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Zookeeper 是一个基于主从复制的高可用集群。通常 3 台服务器就可构成一个 ZooKeeper 集群。ZooKeeper 官方提供的架构图就是一个 ZooKeeper 集群整体对外提供服务。
66

7-
<div align='center'><img src='https://gitee.com/duhouan/ImagePro/raw/master/zookeeper/z_4.png'/></div>
7+
<div align='center'><img src='https://github.com/DuHouAn/ImagePro/raw/master/zookeeper/z_4.png'/></div>
88

99
每一个 Server 代表一个安装 ZooKeeper 服务的服务器,组成 ZooKeeper 服务的服务器都会在内存中维护当前的服务器状态,并且每台服务器之间都互相保持着通信。
1010

@@ -34,7 +34,7 @@ Follower 在接收到一个客户端请求后会先判断该请求是读请求
3434

3535
Zookeeper 集群在运行过程中需要支持更多的客户端并发操作,就需要更多的服务实例,而更多的服务实例会使集群投票阶段变得复杂,集群选主时间过程,不利于集群故障快速恢复。因此,Zookeeper 中引入 Observer,Observer 不参与投票,但是接收来自客户端的连接并响应客户端的读请求,将写请求转发给 Leader。加入更多的 Observer节点,不仅提高了 Zookeeper 集群的吞吐量,也保障了系统的稳定性。
3636

37-
<div align='center'><img src='https://gitee.com/duhouan/ImagePro/raw/master/zookeeper/z_5.jpg'/></div>
37+
<div align='center'><img src='https://github.com/DuHouAn/ImagePro/raw/master/zookeeper/z_5.jpg'/></div>
3838

3939
## ZAB 协议
4040

@@ -133,7 +133,7 @@ ZAB 协议的 Java 实现与其定义略有不同,在实际实现时,选举
133133

134134
S5 提议自己为 Leader 并为自己投票,然后与 S1、S2、S3和 S4 交换投票结果,发现 S3 已经成为 Leader,S5 就成为 Follower。
135135

136-
<div align='center'><img src='https://gitee.com/duhouan/ImagePro/raw/master/zookeeper/z_7.png' width='550px'/></div>
136+
<div align='center'><img src='https://github.com/DuHouAn/ImagePro/raw/master/zookeeper/z_7.png' width='550px'/></div>
137137

138138
## 关于 ZooKeeper 集群的几个问题
139139

0 commit comments

Comments
 (0)