mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 00:58:24 +08:00
update faq.md
This commit is contained in:
parent
7f5305466c
commit
b0e3aee2ec
@ -10,7 +10,6 @@ MyBatis-Flex 使用了 APT 技术,这两个类是自动生成的。
|
||||
## SpringBoot 项目,启动报错 Property 'sqlSessionFactory' or 'sqlSessionTempalte' are required
|
||||
|
||||
如果当前依赖没有连接池相关依赖,则建议添加 HikariCP 依赖。
|
||||
如果已经添加了如 druid 依赖,则配置数据源类型 `spring.datasource.type=com.alibaba.druid.pool.DruidDataSource`。
|
||||
|
||||
SpringBoot v2.x 添加 hikariCP 的内容如下:
|
||||
|
||||
@ -32,6 +31,9 @@ SpringBoot v3.x 添加 hikariCP 的内容如下:
|
||||
</dependency>
|
||||
```
|
||||
|
||||
> 如果使用的是 druid 数据库连接池,则需要添加数据源类型的配置 `spring.datasource.type=com.alibaba.druid.pool.DruidDataSource`。
|
||||
|
||||
|
||||
## 整合 Springboot 3 出现 ClassNotFoundException: NestedIOException 的错误
|
||||
|
||||
需要排除 flex 中的 mybatis-spring 的依赖,主动添加最新版本的 mybatis-spring 依赖。
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user