Skip to content

Commit 4eb6ef7

Browse files
author
quanhengf
committed
项目结构调整
1 parent 3cd26e5 commit 4eb6ef7

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

docs/Mybatis/基础支持层/2、DataSource及Transaction模块.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,9 @@ public class PoolState {
338338
#### 1.3.3 PooledDataSource
339339
PooledDataSource管理的数据库连接对象 是由其持有的UnpooledDataSource对象创建的,并由PoolState管理所有连接的状态。
340340
PooledDataSource的getConnection()方法会首先调用popConnection()方法获取PooledConnection对象,然后通过PooledConnection的getProxyConnection()方法获取数据库连接的代理对象。popConnection()方法是PooledDataSource的核心逻辑之一,其整体的逻辑关系如下图:
341-
![在这里插入图片描述](https://img-blog.csdnimg.cn/20191205213903828.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzM4MDM4Mzk2,size_16,color_FFFFFF,t_70)
341+
342+
![avatar](/images/mybatis/数据库连接池流程图.png)
343+
342344
```java
343345
public class PooledDataSource implements DataSource {
344346

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
本文用于总结阅读过的框架中,所使用过的设计模式,结合实际生成中的源码,重新理解设计模式。
2+
3+
4+
5+
6+
Loading
78.5 KB
Loading

0 commit comments

Comments
 (0)