mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 09:08:24 +08:00
Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
1ca841d2e0
@ -11,7 +11,7 @@ const {Layout} = DefaultTheme
|
|||||||
<template #doc-footer-before>
|
<template #doc-footer-before>
|
||||||
<div class="info custom-block" style="margin-bottom: 14px">
|
<div class="info custom-block" style="margin-bottom: 14px">
|
||||||
<!-- <p class="custom-block-title">对这篇文章还有疑问?</p>-->
|
<!-- <p class="custom-block-title">对这篇文章还有疑问?</p>-->
|
||||||
<p>对这篇文章还有疑问? 点击 <a href="https://gitee.com/mybatis-flex/mybatis-flex/issues/new" target="_blank">这里</a> 发起提问。
|
<p>对这篇文章还有疑问? 点击 <a href="https://gitee.com/mybatis-flex/mybatis-flex/issues/new" target="_blank">[这里]</a> 发起提问。
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
// .vitepress/theme/index.js
|
// .vitepress/theme/index.js
|
||||||
import DefaultTheme from 'vitepress/theme'
|
import DefaultTheme from 'vitepress/theme'
|
||||||
import MyLayout from './MyLayout.vue'
|
import MyLayout from './MyLayout.vue'
|
||||||
|
import './style.css'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
...DefaultTheme,
|
...DefaultTheme,
|
||||||
|
|||||||
18
docs/.vitepress/theme/style.css
Normal file
18
docs/.vitepress/theme/style.css
Normal file
@ -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;
|
||||||
|
}
|
||||||
@ -80,9 +80,9 @@ spring:
|
|||||||
> 若把数据源配置到 `mybatis-flex.datasource` 下,使用 mybatis-flex 的数据源发现机制,
|
> 若把数据源配置到 `mybatis-flex.datasource` 下,使用 mybatis-flex 的数据源发现机制,
|
||||||
> 使用 druid 则可以不用配置 type,更多文档参考:[多数据源章节](./core/multi-datasource.md)。
|
> 使用 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
|
```xml
|
||||||
<dependency>
|
<dependency>
|
||||||
@ -102,7 +102,7 @@ spring:
|
|||||||
</dependency>
|
</dependency>
|
||||||
```
|
```
|
||||||
|
|
||||||
>错误原因是:druid-spring-boot-starter 内的 DruidDataSourceAutoConfigure 会去自动加载 spring.datasource 下的配置,当使用 MyBatis-Flex 的多数据源时,
|
> 原因是:druid-spring-boot-starter 内的 DruidDataSourceAutoConfigure 会去自动加载 spring.datasource 下的配置,当使用 MyBatis-Flex 的多数据源时,
|
||||||
> 这个配置已经不存在了。
|
> 这个配置已经不存在了。
|
||||||
|
|
||||||
## 与 PageHelper 集成出现错误
|
## 与 PageHelper 集成出现错误
|
||||||
|
|||||||
@ -14,7 +14,7 @@
|
|||||||
[https://gitee.com/mybatis-flex/mybatis-benchmark](https://gitee.com/mybatis-flex/mybatis-benchmark)
|
[https://gitee.com/mybatis-flex/mybatis-benchmark](https://gitee.com/mybatis-flex/mybatis-benchmark)
|
||||||
|
|
||||||
::: tip 测试说明
|
::: tip 测试说明
|
||||||
> 在以下的所有测试中,有可能因为每个人的电脑性能不同,测试的结果会有所不同。
|
在以下的所有测试中,有可能因为每个人的电脑性能不同,测试的结果会有所不同。
|
||||||
:::
|
:::
|
||||||
|
|
||||||
## 测试单条数据查询
|
## 测试单条数据查询
|
||||||
@ -159,7 +159,7 @@ mapper.selectList(queryWrapper);
|
|||||||
```
|
```
|
||||||
|
|
||||||
::: tip 测试结论
|
::: tip 测试结论
|
||||||
> MyBatis-Flex 的查询 10 条数据的速度,大概是 MyBatis-Plus 的 5~10 倍左右。
|
MyBatis-Flex 的查询 10 条数据的速度,大概是 MyBatis-Plus 的 5~10 倍左右。
|
||||||
:::
|
:::
|
||||||
|
|
||||||
## 分页查询
|
## 分页查询
|
||||||
@ -219,7 +219,7 @@ mapper.selectPage(p, queryWrapper);
|
|||||||
```
|
```
|
||||||
|
|
||||||
::: tip 测试结论
|
::: tip 测试结论
|
||||||
> Mybatis-Flex 的分页查询速度,大概是 Mybatis-Plus 的 5~10 倍左右。
|
Mybatis-Flex 的分页查询速度,大概是 Mybatis-Plus 的 5~10 倍左右。
|
||||||
:::
|
:::
|
||||||
|
|
||||||
|
|
||||||
@ -305,7 +305,7 @@ mapper.update(plusAccount, lambdaUpdateWrapper);
|
|||||||
```
|
```
|
||||||
|
|
||||||
::: tip 测试结论
|
::: tip 测试结论
|
||||||
> Mybatis-Flex 的数据更新速度,大概是 Mybatis-Plus 的 5~10+ 倍。
|
Mybatis-Flex 的数据更新速度,大概是 Mybatis-Plus 的 5~10+ 倍。
|
||||||
:::
|
:::
|
||||||
|
|
||||||
## 更多的测试
|
## 更多的测试
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user