mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 00:58:24 +08:00
修改错别字
This commit is contained in:
parent
f1a527906d
commit
562f85ff84
@ -607,7 +607,7 @@ WHERE `a`.`id` >= 100 AND
|
|||||||
在 `QueryWrapper` 中,由于其定义了 `循环引用` 的一些数据结构,同时,其很多属性都是 `private` 或者 `protected` 修饰且没有 `getter` `setter` 方法,
|
在 `QueryWrapper` 中,由于其定义了 `循环引用` 的一些数据结构,同时,其很多属性都是 `private` 或者 `protected` 修饰且没有 `getter` `setter` 方法,
|
||||||
这会导致使用一些 json 库在序列化的过程中,出现问题;但这些问题并非 `QueryWrapper` 的问题,而是序列化框架的问题。
|
这会导致使用一些 json 库在序列化的过程中,出现问题;但这些问题并非 `QueryWrapper` 的问题,而是序列化框架的问题。
|
||||||
|
|
||||||
因此,我们在使用序列化框架时,需要注意其是否支持这些特征,比如在使用 FastJson2 序列化时,需要添加一下配置:
|
因此,我们在使用序列化框架时,需要注意其是否支持这些特征,比如在使用 FastJson2 序列化时,需要添加以下配置:
|
||||||
|
|
||||||
序列化:
|
序列化:
|
||||||
|
|
||||||
|
|||||||
@ -66,4 +66,4 @@ public class MyServiceImpl<M extends BaseMapper<T>, T> implements IService<T> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
当然,在 `IService` 中,除了 `list` 方法以外,还有其他的查询方法,可能也需要复写一下。
|
当然,在 `IService` 中,除了 `list` 方法以外,还有其他的查询方法,可能也需要复写。
|
||||||
|
|||||||
@ -103,7 +103,7 @@ processor.entity.ignoreSuffixes = Model, Dto
|
|||||||
|
|
||||||
## APT 开启 Mapper 生成
|
## APT 开启 Mapper 生成
|
||||||
|
|
||||||
从 v1.1.9 开始, APT 的 Mapper 功能是关闭的,若需要开启 Mapper 的自动生成功能,需要添加一下配置。
|
从 v1.1.9 开始, APT 的 Mapper 功能是关闭的,若需要开启 Mapper 的自动生成功能,需要添加以下配置。
|
||||||
|
|
||||||
```properties
|
```properties
|
||||||
processor.mappersGenerateEnable = true
|
processor.mappersGenerateEnable = true
|
||||||
|
|||||||
@ -209,7 +209,7 @@ public class TableInfoFactory {
|
|||||||
|
|
||||||
Class<?> fieldType = reflector.getGetterType(field.getName());
|
Class<?> fieldType = reflector.getGetterType(field.getName());
|
||||||
|
|
||||||
//满足一下 3 中情况,不支持该类型
|
//满足以下 3 种情况,不支持该类型
|
||||||
if ((column == null || column.typeHandler() == UnknownTypeHandler.class) // 未配置 typeHandler
|
if ((column == null || column.typeHandler() == UnknownTypeHandler.class) // 未配置 typeHandler
|
||||||
&& !fieldType.isEnum() // 类型不是枚举
|
&& !fieldType.isEnum() // 类型不是枚举
|
||||||
&& !defaultSupportColumnTypes.contains(fieldType) //默认的自动类型不包含该类型
|
&& !defaultSupportColumnTypes.contains(fieldType) //默认的自动类型不包含该类型
|
||||||
|
|||||||
@ -73,7 +73,7 @@ import java.util.stream.Stream;
|
|||||||
* 参考 {@link <a href="https://github.com/mybatis/spring-boot-starter/blob/master/mybatis-spring-boot-autoconfigure/src/main/java/org/mybatis/spring/boot/autoconfigure/MybatisAutoConfiguration.java">
|
* 参考 {@link <a href="https://github.com/mybatis/spring-boot-starter/blob/master/mybatis-spring-boot-autoconfigure/src/main/java/org/mybatis/spring/boot/autoconfigure/MybatisAutoConfiguration.java">
|
||||||
* https://github.com/mybatis/spring-boot-starter/blob/master/mybatis-spring-boot-autoconfigure/src/main/java/org/mybatis/spring/boot/autoconfigure/MybatisAutoConfiguration.java</a>}
|
* https://github.com/mybatis/spring-boot-starter/blob/master/mybatis-spring-boot-autoconfigure/src/main/java/org/mybatis/spring/boot/autoconfigure/MybatisAutoConfiguration.java</a>}
|
||||||
* <p>
|
* <p>
|
||||||
* 为 Mybatis-Flex 开启自动配置功能,主要修改一下几个方面:
|
* 为 Mybatis-Flex 开启自动配置功能,主要修改以下几个方面:
|
||||||
* <p>
|
* <p>
|
||||||
* 1、替换配置为 mybatis-flex 的配置前缀
|
* 1、替换配置为 mybatis-flex 的配置前缀
|
||||||
* 2、修改 SqlSessionFactory 为 FlexSqlSessionFactoryBean
|
* 2、修改 SqlSessionFactory 为 FlexSqlSessionFactoryBean
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user