Skip to content

Commit 22bf71d

Browse files
update translations
1 parent 2215189 commit 22bf71d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/site/zh/xdoc/java-api.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -585,11 +585,11 @@ class UserSqlBuilder {
585585
<p>这是一个在全局配置下让所有映射方法在同一个 sql provider 类里面的例子(3.5.6 后可用):</p>
586586
<source><![CDATA[
587587
Configuration configuration = new Configuration();
588-
configuration.setDefaultSqlProviderType(TemplateFilePathProvider.class); // Specify an sql provider class for sharing on all mapper methods
588+
configuration.setDefaultSqlProviderType(TemplateFilePathProvider.class); // 让所有映射方法在同一个 sql provider 类里面
589589
// ...]]></source>
590590
<source><![CDATA[
591-
// Can omit the type/value attribute on sql provider annotation
592-
// 如果省略,MyBatis 将使用 defaultSqlProviderType 所指定的类.
591+
// 在 sql provider 注解上可以省略 type/value 属性
592+
// 如果省略,MyBatis 将使用 defaultSqlProviderType 所指定的类
593593
public interface UserMapper {
594594
595595
@SelectProvider // 等价于 @SelectProvider(TemplateFilePathProvider.class)

0 commit comments

Comments
 (0)