mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 00:58:24 +08:00
update docs
This commit is contained in:
parent
d3e75696cd
commit
cdf46a537f
12
docs/deploy.sh
Executable file
12
docs/deploy.sh
Executable file
@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# abort on errors
|
||||
set -e
|
||||
|
||||
# build
|
||||
npm run docs:build
|
||||
#vuepress build .
|
||||
|
||||
ossutil rm oss://mybaits-flex/ -rf
|
||||
ossutil cp -rf assets/images oss://mybaits-flex/assets/images
|
||||
ossutil cp -rf .vitepress/dist oss://mybaits-flex/
|
||||
@ -1,5 +1,4 @@
|
||||
---
|
||||
# https://vitepress.dev/reference/default-theme-home-page
|
||||
layout: home
|
||||
|
||||
hero:
|
||||
|
||||
@ -74,12 +74,12 @@ public class HelloWorld {
|
||||
```
|
||||
|
||||
> 以上的示例中, `AccountMapper.class` 为 Mybatis-Flex 通过 APT 自动生成,无需手动编码。
|
||||
> 也可以关闭自动生成功能,手动编写 AccountMapper,更多查看 [APT 文档](/zh/apt)。
|
||||
> 也可以关闭自动生成功能,手动编写 AccountMapper,更多查看 [APT 文档](./apt)。
|
||||
|
||||
|
||||
## 更多示例
|
||||
|
||||
- 示例 1:[Mybatis-Flex 原生(非 Spring)](https://gitee.com/mybatis-flex/mybatis-flex/tree/main/mybatis-flex-test/mybatis-flex-native-test)
|
||||
- 示例 2:[Mybatis-Flex with Spring]()
|
||||
- 示例 3:[Mybatis-Flex with Spring boot]()
|
||||
- 示例 4:[Db + Row]()
|
||||
- 示例 2:[Mybatis-Flex with Spring](https://gitee.com/mybatis-flex/mybatis-flex/tree/main/mybatis-flex-test/mybatis-flex-spring-test)
|
||||
- 示例 3:[Mybatis-Flex with Spring boot](https://gitee.com/mybatis-flex/mybatis-flex/tree/main/mybatis-flex-test/mybatis-flex-spring-boot-test)
|
||||
- 示例 4:[Db + Row](https://gitee.com/mybatis-flex/mybatis-flex/blob/main/mybatis-flex-test/mybatis-flex-native-test/src/main/java/com/mybatisflex/test/DbTestStarter.java)
|
||||
@ -365,6 +365,6 @@ SELECT * FROM "tb_account" ORDER BY "id" DESC ROWS 20 TO 30
|
||||
会自动根据 Entity 类定义的字段帮你生成 "ACCOUNT" 类以及 Entity 对应的 Mapper 类, 通过开发工具构建项目(如下图),
|
||||
或者执行 maven 编译命令: `mvn clean package` 都可以自动生成。这个原理和 lombok 一致。
|
||||
|
||||

|
||||

|
||||
|
||||
> 更多关于 APT 的配置,请进入 [APT 配置章节](./apt) 了解。
|
||||
Loading…
x
Reference in New Issue
Block a user