Skip to content

Commit 5a3b80b

Browse files
authored
Merge pull request #2545 from awxiaoxian2020/config-doc
update the configuration.xml in zh doc
2 parents d203890 + 9422f0b commit 5a3b80b

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

src/site/zh/xdoc/configuration.xml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ SqlSessionFactory factory = new SqlSessionFactoryBuilder().build(reader, environ
500500
指定 MyBatis 所用日志的具体实现,未指定时将自动查找。
501501
</td>
502502
<td>
503-
SLF4J | LOG4J(deprecated since 3.5.9) | LOG4J2 | JDK_LOGGING | COMMONS_LOGGING | STDOUT_LOGGING | NO_LOGGING
503+
SLF4J | LOG4J3.5.9 起废弃) | LOG4J2 | JDK_LOGGING | COMMONS_LOGGING | STDOUT_LOGGING | NO_LOGGING
504504
</td>
505505
<td>
506506
未设置
@@ -514,7 +514,7 @@ SqlSessionFactory factory = new SqlSessionFactoryBuilder().build(reader, environ
514514
指定 Mybatis 创建可延迟加载对象所用到的代理工具。
515515
</td>
516516
<td>
517-
CGLIB (deprecated since 3.5.10) | JAVASSIST
517+
CGLIB 3.5.10 起废弃) | JAVASSIST
518518
</td>
519519
<td>
520520
JAVASSIST (MyBatis 3.3 以上)
@@ -584,23 +584,22 @@ SqlSessionFactory factory = new SqlSessionFactoryBuilder().build(reader, environ
584584
defaultSqlProviderType
585585
</td>
586586
<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>)
590589
</td>
591590
<td>
592-
A type alias or fully qualified class name
591+
类型别名或者全限定名
593592
</td>
594593
<td>
595-
Not set
594+
未设置
596595
</td>
597596
</tr>
598597
<tr>
599598
<td>
600599
nullableOnForEach
601600
</td>
602601
<td>
603-
Specifies the default value of 'nullable' attribute on 'foreach' tag. (Since 3.5.9)
602+
为 'foreach' 标签的 'nullable' 属性指定默认值。(新增于 3.5.9
604603
</td>
605604
<td>
606605
true | false
@@ -614,7 +613,7 @@ SqlSessionFactory factory = new SqlSessionFactoryBuilder().build(reader, environ
614613
argNameBasedConstructorAutoMapping
615614
</td>
616615
<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
618617
</td>
619618
<td>
620619
true | false
@@ -1697,7 +1696,7 @@ SqlSessionFactory factory = new SqlSessionFactoryBuilder().build(reader, propert
16971696
<p>在 MyBatis 中有两种类型的事务管理器(也就是 type="[JDBC|MANAGED]"):</p>
16981697
<ul>
16991698
<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" 来跳过这个步骤。例如:
17011700
<source><![CDATA[<transactionManager type="JDBC">
17021701
<property name="skipSetAutoCommitOnClose" value="true"/>
17031702
</transactionManager>]]></source>

0 commit comments

Comments
 (0)