File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -585,11 +585,11 @@ class UserSqlBuilder {
585
585
<p >这是一个在全局配置下让所有映射方法在同一个 sql provider 类里面的例子(3.5.6 后可用):</p >
586
586
<source ><![CDATA[
587
587
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 类里面
589
589
// ...]]> </source >
590
590
<source ><![CDATA[
591
- // Can omit the type/value attribute on sql provider annotation
592
- // 如果省略,MyBatis 将使用 defaultSqlProviderType 所指定的类.
591
+ // 在 sql provider 注解上可以省略 type/value 属性
592
+ // 如果省略,MyBatis 将使用 defaultSqlProviderType 所指定的类
593
593
public interface UserMapper {
594
594
595
595
@SelectProvider // 等价于 @SelectProvider(TemplateFilePathProvider.class)
You can’t perform that action at this time.
0 commit comments