From 562f85ff847f40356d5c004cf45e6d6cdf089bfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=80=E6=BA=90=E6=B5=B7=E5=93=A5?= Date: Tue, 13 Jun 2023 15:45:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=94=99=E5=88=AB=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/zh/base/querywrapper.md | 2 +- docs/zh/core/data-permission.md | 2 +- docs/zh/others/apt.md | 2 +- .../main/java/com/mybatisflex/core/table/TableInfoFactory.java | 2 +- .../mybatisflex/spring/boot/MybatisFlexAutoConfiguration.java | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/zh/base/querywrapper.md b/docs/zh/base/querywrapper.md index aeb25299..2409d849 100644 --- a/docs/zh/base/querywrapper.md +++ b/docs/zh/base/querywrapper.md @@ -607,7 +607,7 @@ WHERE `a`.`id` >= 100 AND 在 `QueryWrapper` 中,由于其定义了 `循环引用` 的一些数据结构,同时,其很多属性都是 `private` 或者 `protected` 修饰且没有 `getter` `setter` 方法, 这会导致使用一些 json 库在序列化的过程中,出现问题;但这些问题并非 `QueryWrapper` 的问题,而是序列化框架的问题。 -因此,我们在使用序列化框架时,需要注意其是否支持这些特征,比如在使用 FastJson2 序列化时,需要添加一下配置: +因此,我们在使用序列化框架时,需要注意其是否支持这些特征,比如在使用 FastJson2 序列化时,需要添加以下配置: 序列化: diff --git a/docs/zh/core/data-permission.md b/docs/zh/core/data-permission.md index 0ddf059f..8d1c452c 100644 --- a/docs/zh/core/data-permission.md +++ b/docs/zh/core/data-permission.md @@ -66,4 +66,4 @@ public class MyServiceImpl, T> implements IService { } } ``` -当然,在 `IService` 中,除了 `list` 方法以外,还有其他的查询方法,可能也需要复写一下。 +当然,在 `IService` 中,除了 `list` 方法以外,还有其他的查询方法,可能也需要复写。 diff --git a/docs/zh/others/apt.md b/docs/zh/others/apt.md index b2f79926..d8a1bf43 100644 --- a/docs/zh/others/apt.md +++ b/docs/zh/others/apt.md @@ -103,7 +103,7 @@ processor.entity.ignoreSuffixes = Model, Dto ## APT 开启 Mapper 生成 -从 v1.1.9 开始, APT 的 Mapper 功能是关闭的,若需要开启 Mapper 的自动生成功能,需要添加一下配置。 +从 v1.1.9 开始, APT 的 Mapper 功能是关闭的,若需要开启 Mapper 的自动生成功能,需要添加以下配置。 ```properties processor.mappersGenerateEnable = true diff --git a/mybatis-flex-core/src/main/java/com/mybatisflex/core/table/TableInfoFactory.java b/mybatis-flex-core/src/main/java/com/mybatisflex/core/table/TableInfoFactory.java index 65563ac1..1778579e 100644 --- a/mybatis-flex-core/src/main/java/com/mybatisflex/core/table/TableInfoFactory.java +++ b/mybatis-flex-core/src/main/java/com/mybatisflex/core/table/TableInfoFactory.java @@ -209,7 +209,7 @@ public class TableInfoFactory { Class fieldType = reflector.getGetterType(field.getName()); - //满足一下 3 中情况,不支持该类型 + //满足以下 3 种情况,不支持该类型 if ((column == null || column.typeHandler() == UnknownTypeHandler.class) // 未配置 typeHandler && !fieldType.isEnum() // 类型不是枚举 && !defaultSupportColumnTypes.contains(fieldType) //默认的自动类型不包含该类型 diff --git a/mybatis-flex-spring-boot-starter/src/main/java/com/mybatisflex/spring/boot/MybatisFlexAutoConfiguration.java b/mybatis-flex-spring-boot-starter/src/main/java/com/mybatisflex/spring/boot/MybatisFlexAutoConfiguration.java index 7c8526a0..05cc2560 100644 --- a/mybatis-flex-spring-boot-starter/src/main/java/com/mybatisflex/spring/boot/MybatisFlexAutoConfiguration.java +++ b/mybatis-flex-spring-boot-starter/src/main/java/com/mybatisflex/spring/boot/MybatisFlexAutoConfiguration.java @@ -73,7 +73,7 @@ import java.util.stream.Stream; * 参考 {@link * https://github.com/mybatis/spring-boot-starter/blob/master/mybatis-spring-boot-autoconfigure/src/main/java/org/mybatis/spring/boot/autoconfigure/MybatisAutoConfiguration.java} *

- * 为 Mybatis-Flex 开启自动配置功能,主要修改一下几个方面: + * 为 Mybatis-Flex 开启自动配置功能,主要修改以下几个方面: *

* 1、替换配置为 mybatis-flex 的配置前缀 * 2、修改 SqlSessionFactory 为 FlexSqlSessionFactoryBean