@@ -500,7 +500,7 @@ SqlSessionFactory factory = new SqlSessionFactoryBuilder().build(reader, environ
500
500
指定 MyBatis 所用日志的具体实现,未指定时将自动查找。
501
501
</td >
502
502
<td >
503
- SLF4J | LOG4J(deprecated since 3.5.9) | LOG4J2 | JDK_LOGGING | COMMONS_LOGGING | STDOUT_LOGGING | NO_LOGGING
503
+ SLF4J | LOG4J( 3.5.9 起废弃) | LOG4J2 | JDK_LOGGING | COMMONS_LOGGING | STDOUT_LOGGING | NO_LOGGING
504
504
</td >
505
505
<td >
506
506
未设置
@@ -514,7 +514,7 @@ SqlSessionFactory factory = new SqlSessionFactoryBuilder().build(reader, environ
514
514
指定 Mybatis 创建可延迟加载对象所用到的代理工具。
515
515
</td >
516
516
<td >
517
- CGLIB (deprecated since 3.5.10) | JAVASSIST
517
+ CGLIB ( 3.5.10 起废弃) | JAVASSIST
518
518
</td >
519
519
<td >
520
520
JAVASSIST (MyBatis 3.3 以上)
@@ -584,23 +584,22 @@ SqlSessionFactory factory = new SqlSessionFactoryBuilder().build(reader, environ
584
584
defaultSqlProviderType
585
585
</td >
586
586
<td >
587
- Specifies an sql provider class that holds provider method (Since 3.5.6).
588
- This class apply to the <code >type</code >(or <code >value</code >) attribute on sql provider annotation(e.g. <code >@SelectProvider</code >),
589
- when these attribute was omitted.
587
+ 指定一个拥有 provider 方法的 sql provider 类 (新增于 3.5.6).
588
+ 这个类适用于指定 sql provider 注解上的<code >type</code >(或 <code >value</code >) 属性(当这些属性在注解中被忽略时)。 (e.g. <code >@SelectProvider</code >)
590
589
</td >
591
590
<td >
592
- A type alias or fully qualified class name
591
+ 类型别名或者全限定名
593
592
</td >
594
593
<td >
595
- Not set
594
+ 未设置
596
595
</td >
597
596
</tr >
598
597
<tr >
599
598
<td >
600
599
nullableOnForEach
601
600
</td >
602
601
<td >
603
- Specifies the default value of 'nullable' attribute on 'foreach' tag. (Since 3.5.9)
602
+ 为 'foreach' 标签的 'nullable' 属性指定默认值。(新增于 3.5.9)
604
603
</td >
605
604
<td >
606
605
true | false
@@ -614,7 +613,7 @@ SqlSessionFactory factory = new SqlSessionFactoryBuilder().build(reader, environ
614
613
argNameBasedConstructorAutoMapping
615
614
</td >
616
615
<td >
617
- When applying constructor auto-mapping, argument name is used to search the column to map instead of relying on the column order. (Since 3.5.10)
616
+ 当应用构造器自动映射时,参数名称被用来搜索要映射的列,而不再依赖列的顺序。(新增于 3.5.10)
618
617
</td >
619
618
<td >
620
619
true | false
@@ -1697,7 +1696,7 @@ SqlSessionFactory factory = new SqlSessionFactoryBuilder().build(reader, propert
1697
1696
<p >在 MyBatis 中有两种类型的事务管理器(也就是 type="[JDBC|MANAGED]"):</p >
1698
1697
<ul >
1699
1698
<li >
1700
- JDBC – 这个配置直接使用了 JDBC 的提交和回滚设施 ,它依赖从数据源获得的连接来管理事务作用域。 By default, it enables auto-commit when closing the connection for compatibility with some drivers. However, for some drivers, enabling auto-commit is not only unnecesry, but also is an expensive operation. So, since version 3.5.10, you can skip this step by setting the "skipSetAutoCommitOnClose" property to true. For example:
1699
+ JDBC – 这个配置直接使用了 JDBC 的提交和回滚功能 ,它依赖从数据源获得的连接来管理事务作用域。默认情况下,为了与某些驱动程序兼容,它在关闭连接时启用自动提交。然而,对于某些驱动程序来说,启用自动提交不仅是不必要的,而且是一个代价高昂的操作。因此,从 3.5.10 版本开始,你可以通过将 "skipSetAutoCommitOnClose" 属性设置为 " true" 来跳过这个步骤。例如:
1701
1700
<source ><![CDATA[ <transactionManager type="JDBC">
1702
1701
<property name="skipSetAutoCommitOnClose" value="true"/>
1703
1702
</transactionManager>]]> </source >
0 commit comments