pull/171/head
Alioth4J 9 months ago
parent 8686aa0f24
commit 80283344c8

@ -576,4 +576,4 @@ TypeHandlerRegistry 其实就是一个容器,前面注册了一堆东西,也
}
```
除了 Mabatis 本身自带的 TypeHandler 实现,我们还可以添加自定义的 TypeHandler 实现类,在配置文件 mybatis-config.xml 中的 <typeHandler> 标签下配置好 自定义 TypeHandlerMybatis 就会在初始化时解析该标签内容,完成 自定义 TypeHandler 的注册。
除了 Mybatis 本身自带的 TypeHandler 实现,我们还可以添加自定义的 TypeHandler 实现类,在配置文件 mybatis-config.xml 中的 <typeHandler> 标签下配置好 自定义 TypeHandlerMybatis 就会在初始化时解析该标签内容,完成 自定义 TypeHandler 的注册。

@ -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 -

@ -1,4 +1,4 @@
# Mybatis DyanmicSqlSourcce
# Mybatis DynamicSqlSource
- Author: [HuiFer](https://github.com/huifer)
- 源码阅读工程: [SourceHot-Mybatis](https://github.com/SourceHot/mybatis-read.git)
@ -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());
// 参数放入

@ -90,7 +90,7 @@
}
/**
* 是否uresultHandler
* 是否resultHandler
*
* @return
*/

Loading…
Cancel
Save