mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-06 16:48:24 +08:00
doc: 添加 Spring Boot 最低版本说明。
This commit is contained in:
parent
574f8ec692
commit
5511d5fec8
@ -21,6 +21,7 @@
|
||||
就可以了,不需要再添加其他 MyBatis 依赖。
|
||||
- 3、是否与 `mybatis-plus-boot-starter` 共用,使 MyBatis 被优先初始化,而导致 MyBatis-Flex 没有被加载。
|
||||
- 4、是否添加了 `pagehelper-spring-boot-starter` 依赖,导致传递了 `mybatis-spring-boot-starter` 依赖。如还想继续使用 pagehelper 插件,点击 [这里](#与-pagehelper-集成出现错误) 查看解决方案。
|
||||
- 5、是否 Spring Boot 版本过低,请使用 Spring Boot 2.2 及其以上版本,点击 [这里](#springboot-项目启动报错-javalangclassnotfoundexception-orgspringframeworktransactiontransactionmanager) 获取详细信息。
|
||||
|
||||
## 示例中的 AccountMapper 和 "ACCOUNT" 在哪里,报错了。
|
||||
|
||||
@ -62,6 +63,11 @@ in alimaven (http://maven.aliyun.com/nexus/content/groups/public/)
|
||||
</mirror>
|
||||
```
|
||||
|
||||
## SpringBoot 项目,启动报错 java.lang.ClassNotFoundException: org.springframework.transaction.TransactionManager
|
||||
|
||||
这个应该是 Spring Boot 版本的问题,`org.springframework.transaction.TransactionManager` 这个类是 Spring Framework 5.2
|
||||
新增的,对应 Spring Boot 的版本应该是 Spring Boot 2.2 及其以上版本,所以应该使用 Spring Boot 2.2 及其以上版本。
|
||||
|
||||
## SpringBoot 项目,启动报错 Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required
|
||||
|
||||
如果当前依赖没有连接池相关依赖,则建议添加 HikariCP 依赖。
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user