diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index fa49d7cb..15401b66 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -66,6 +66,7 @@ export default defineConfig({ {text: 'QueryWrapper', link: '/zh/base/querywrapper'}, {text: 'Db + Row', link: '/zh/base/db-row'}, {text: 'IService', link: '/zh/base/service'}, + {text: '配置选项', link: '/zh/base/configuration'}, ] }, { @@ -95,7 +96,6 @@ export default defineConfig({ { text: '其他', items: [ - {text: '配置选项', link: '/zh/others/configuration'}, {text: '代码生成器', link: '/zh/others/codegen'}, {text: 'APT 设置', link: '/zh/others/apt'}, ] diff --git a/docs/zh/others/configuration.md b/docs/zh/base/configuration.md similarity index 94% rename from docs/zh/others/configuration.md rename to docs/zh/base/configuration.md index 870de424..66e523bb 100644 --- a/docs/zh/others/configuration.md +++ b/docs/zh/base/configuration.md @@ -7,13 +7,13 @@ ### 原生方式: ```java -FlexGlobalConfig defaultConfig=FlexGlobalConfig.getDefaultConfig(); -// use defaultConfig.setXxx(...); +FlexGlobalConfig defaultConfig = FlexGlobalConfig.getDefaultConfig(); +// defaultConfig.setXxx(...); ``` ### Spring MVC -不支持 +同原生配置 ### Spring Boot @@ -108,7 +108,7 @@ TypeHandler 扫描路径,如果配置了该属性,SqlSessionFactoryBean 会 ## configuration 本部分(Configuration)的配置都为 MyBatis -原生支持的配置,有关配置请参考 [MyBatis Configuration](https://mybatis.net.cn/configuration.html#settings)。 +原生支持的配置,有关配置请参考 [MyBatis Configuration](https://mybatis.org/mybatis-3/zh/configuration.html#%E8%AE%BE%E7%BD%AE%EF%BC%88settings%EF%BC%89)。 ## global-config