diff --git a/docs/.vitepress/theme/MyLayout.vue b/docs/.vitepress/theme/MyLayout.vue index b2c325ba..23dbfe03 100644 --- a/docs/.vitepress/theme/MyLayout.vue +++ b/docs/.vitepress/theme/MyLayout.vue @@ -11,7 +11,7 @@ const {Layout} = DefaultTheme diff --git a/docs/.vitepress/theme/index.js b/docs/.vitepress/theme/index.js index 9c8c6528..c8280320 100644 --- a/docs/.vitepress/theme/index.js +++ b/docs/.vitepress/theme/index.js @@ -1,6 +1,7 @@ // .vitepress/theme/index.js import DefaultTheme from 'vitepress/theme' import MyLayout from './MyLayout.vue' +import './style.css' export default { ...DefaultTheme, diff --git a/docs/.vitepress/theme/style.css b/docs/.vitepress/theme/style.css new file mode 100644 index 00000000..77c0f888 --- /dev/null +++ b/docs/.vitepress/theme/style.css @@ -0,0 +1,18 @@ +:root { + --vp-c-brand: #F06C33; + --vp-c-brand-light: #FFCC00; + --vp-c-brand-lighter: #FFCC99; + --vp-c-brand-dark: #FF9933; + --vp-c-brand-darker: #CC6600; + + --vp-custom-block-tip-border:#FFCC99; + --vp-custom-block-tip-text:#F06C33; +} + +/*.VPNavBarTitle>.title{*/ +/* color: #F06C33;*/ +/*}*/ + +.vp-doc .custom-block p { + font-size: 16px; +} \ No newline at end of file diff --git a/docs/zh/faq.md b/docs/zh/faq.md index 3815389c..d711065d 100644 --- a/docs/zh/faq.md +++ b/docs/zh/faq.md @@ -80,9 +80,9 @@ spring: > 若把数据源配置到 `mybatis-flex.datasource` 下,使用 mybatis-flex 的数据源发现机制, > 使用 druid 则可以不用配置 type,更多文档参考:[多数据源章节](./core/multi-datasource.md)。 -## 多数据源下,使用 Druid 无法启动,出现 "Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured." 错误。 +## 使用 `druid-spring-boot-starter`,出现无法启动 或者 数据源识别错误的问题 -在多数据源的场景下,不能使用 "druid-spring-boot-starter" 依赖,只能使用 "druid" 。 +在 MyBatis-Flex 不能使用 "druid-spring-boot-starter" 依赖,只能使用 "druid" 。 ```xml @@ -102,7 +102,7 @@ spring: ``` ->错误原因是:druid-spring-boot-starter 内的 DruidDataSourceAutoConfigure 会去自动加载 spring.datasource 下的配置,当使用 MyBatis-Flex 的多数据源时, +> 原因是:druid-spring-boot-starter 内的 DruidDataSourceAutoConfigure 会去自动加载 spring.datasource 下的配置,当使用 MyBatis-Flex 的多数据源时, > 这个配置已经不存在了。 ## 与 PageHelper 集成出现错误 diff --git a/docs/zh/intro/benchmark.md b/docs/zh/intro/benchmark.md index b5153619..22573068 100644 --- a/docs/zh/intro/benchmark.md +++ b/docs/zh/intro/benchmark.md @@ -14,7 +14,7 @@ [https://gitee.com/mybatis-flex/mybatis-benchmark](https://gitee.com/mybatis-flex/mybatis-benchmark) ::: tip 测试说明 -> 在以下的所有测试中,有可能因为每个人的电脑性能不同,测试的结果会有所不同。 +在以下的所有测试中,有可能因为每个人的电脑性能不同,测试的结果会有所不同。 ::: ## 测试单条数据查询 @@ -159,7 +159,7 @@ mapper.selectList(queryWrapper); ``` ::: tip 测试结论 -> MyBatis-Flex 的查询 10 条数据的速度,大概是 MyBatis-Plus 的 5~10 倍左右。 +MyBatis-Flex 的查询 10 条数据的速度,大概是 MyBatis-Plus 的 5~10 倍左右。 ::: ## 分页查询 @@ -219,7 +219,7 @@ mapper.selectPage(p, queryWrapper); ``` ::: tip 测试结论 -> Mybatis-Flex 的分页查询速度,大概是 Mybatis-Plus 的 5~10 倍左右。 +Mybatis-Flex 的分页查询速度,大概是 Mybatis-Plus 的 5~10 倍左右。 ::: @@ -305,7 +305,7 @@ mapper.update(plusAccount, lambdaUpdateWrapper); ``` ::: tip 测试结论 -> Mybatis-Flex 的数据更新速度,大概是 Mybatis-Plus 的 5~10+ 倍。 +Mybatis-Flex 的数据更新速度,大概是 Mybatis-Plus 的 5~10+ 倍。 ::: ## 更多的测试