Skip to content

Commit

Permalink
fix: typo (#171)
Browse files Browse the repository at this point in the history
* fix typos

* fix typo in filename of Mybatis-DynamicSqlSource.md

* fix typo in filename of Mybatis-GenericTokenParser.md

* replace tab with 4 spaces
  • Loading branch information
Alioth4J authored Jan 2, 2025
1 parent 8686aa0 commit 10962ca
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,14 @@
- [Mybatis-Alias](/docs/Mybatis/核心处理层/Mybatis-Alias.md)
- [Mybatis-Cursor](/docs/Mybatis/核心处理层/Mybatis-Cursor.md)
- [Mybatis-DataSource](/docs/Mybatis/核心处理层/Mybatis-DataSource.md)
- [Mybatis-DyanmicSqlSourcce](/docs/Mybatis/核心处理层/Mybatis-DyanmicSqlSourcce.md)
- [Mybatis-DynamicSqlSource](/docs/Mybatis/核心处理层/Mybatis-DynamicSqlSource.md)
- [Mybatis-MapperMethod](/docs/Mybatis/核心处理层/Mybatis-MapperMethod.md)
- [Mybatis-MetaObject](/docs/Mybatis/核心处理层/Mybatis-MetaObject.md)
- [Mybatis-MethodSignature](/docs/Mybatis/核心处理层/Mybatis-MethodSignature.md)
- [Mybatis-ObjectWrapper](/docs/Mybatis/核心处理层/Mybatis-ObjectWrapper.md)
- [Mybatis-ParamNameResolver](/docs/Mybatis/核心处理层/Mybatis-ParamNameResolver.md)
- [Mybatis-SqlCommand](/docs/Mybatis/核心处理层/Mybatis-SqlCommand.md)
- [Mybats-GenericTokenParser](/docs/Mybatis/核心处理层/Mybats-GenericTokenParser.md)
- [Mybatis-GenericTokenParser](/docs/Mybatis/核心处理层/Mybatis-GenericTokenParser.md)

## Netty

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -576,4 +576,4 @@ TypeHandlerRegistry 其实就是一个容器,前面注册了一堆东西,也
}
```

除了 Mabatis 本身自带的 TypeHandler 实现,我们还可以添加自定义的 TypeHandler 实现类,在配置文件 mybatis-config.xml 中的 <typeHandler> 标签下配置好 自定义 TypeHandlerMybatis 就会在初始化时解析该标签内容,完成 自定义 TypeHandler 的注册。
除了 Mybatis 本身自带的 TypeHandler 实现,我们还可以添加自定义的 TypeHandler 实现类,在配置文件 mybatis-config.xml 中的 <typeHandler> 标签下配置好 自定义 TypeHandlerMybatis 就会在初始化时解析该标签内容,完成 自定义 TypeHandler 的注册。
2 changes: 1 addition & 1 deletion docs/Mybatis/基础支持层/Mybatis-Reflector.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ class HfReflectorTest {
Map<String, Method> uniqueMethods = new HashMap<>();
Class<?> currentClass = clazz;
while (currentClass != null && currentClass != Object.class) {
// getDeclaredMethods 获取 public ,private , protcted 方法
// getDeclaredMethods 获取 public ,private , protected 方法
addUniqueMethods(uniqueMethods, currentClass.getDeclaredMethods());

// we also need to look for interface methods -
Expand Down
4 changes: 2 additions & 2 deletions docs/Mybatis/核心处理层/Mybatis-DataSource.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public class JndiDataSourceFactory implements DataSourceFactory {
## PooledDataSource

```java
protected int poolMaximumActiveConnections = 10;
protected int poolMaximumActiveConnections = 10;
protected int poolMaximumIdleConnections = 5;
protected int poolMaximumCheckoutTime = 20000;
protected int poolTimeToWait = 20000;
Expand All @@ -155,7 +155,7 @@ public class PooledDataSourceFactory extends UnpooledDataSourceFactory {

}

// 初始化
// 初始化
public PooledDataSource() {
dataSource = new UnpooledDataSource();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Mybatis DyanmicSqlSourcce
# Mybatis DynamicSqlSource

- Author: [HuiFer](https://github.com/huifer)
- 源码阅读工程: [SourceHot-Mybatis](https://github.com/SourceHot/mybatis-read.git)
Expand Down Expand Up @@ -257,7 +257,7 @@ public class StaticTextSqlNode implements SqlNode {
Statement stmt;
// 数据库连接
Connection connection = getConnection(statementLog);
// stms 创建
// stmt 创建
// org.apache.ibatis.executor.statement.BaseStatementHandler.prepare
stmt = handler.prepare(connection, transaction.getTimeout());
// 参数放入
Expand Down
2 changes: 1 addition & 1 deletion docs/Mybatis/核心处理层/Mybatis-MethodSignature.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
}

/**
* 是否uresultHandler
* 是否有 resultHandler
*
* @return
*/
Expand Down

0 comments on commit 10962ca

Please sign in to comment.