From b9394780c76c6e1237bf89d47c016a413a4240a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=80=E6=BA=90=E6=B5=B7=E5=93=A5?= Date: Thu, 22 Jun 2023 12:25:01 +0800 Subject: [PATCH] update docs --- docs/.vitepress/config.ts | 2 +- docs/zh/{others => base}/configuration.md | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) rename docs/zh/{others => base}/configuration.md (94%) 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