From 574f8ec692e8a23c71e6b6f3e49b37b80faa8374 Mon Sep 17 00:00:00 2001 From: Suomm <1474983351@qq.com> Date: Tue, 8 Aug 2023 21:04:20 +0800 Subject: [PATCH 1/2] =?UTF-8?q?doc:=20=E2=80=9C=E7=AD=89=E7=AD=89=E2=80=9D?= =?UTF-8?q?=E4=B8=8E=E7=9C=81=E7=95=A5=E5=8F=B7=E4=B8=8D=E8=83=BD=E5=90=8C?= =?UTF-8?q?=E6=97=B6=E4=BD=BF=E7=94=A8=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.md b/docs/index.md index 4270ba51..6e496041 100644 --- a/docs/index.md +++ b/docs/index.md @@ -20,7 +20,7 @@ features: - title: 更轻量 details: MyBatis-Flex 除了 MyBatis 本身,再无任何第三方依赖,因此会带来更高的自主性、把控性和稳定性。在任何一个系统中,依赖越多,稳定性越差。 - title: 更灵活 - details: MyBatis-Flex 提供了非常灵活的 QueryWrapper,支持关联查询、多表查询、多主键、逻辑删除、乐观锁更新、数据填充、数据脱敏、等等.... + details: MyBatis-Flex 提供了非常灵活的 QueryWrapper,支持关联查询、多表查询、多主键、逻辑删除、乐观锁更新、数据填充、数据脱敏等等。 - title: 更高的性能 details: MyBatis-Flex 通过独特的架构,没有任何 MyBatis 拦截器、在 SQL 执行的过程中,没有任何的 SQL Parse,因此会带来指数级的性能增长。 --- From 5511d5fec8768edb60ae17f9690377448fd264c3 Mon Sep 17 00:00:00 2001 From: Suomm <1474983351@qq.com> Date: Tue, 8 Aug 2023 21:31:44 +0800 Subject: [PATCH 2/2] =?UTF-8?q?doc:=20=E6=B7=BB=E5=8A=A0=20Spring=20Boot?= =?UTF-8?q?=20=E6=9C=80=E4=BD=8E=E7=89=88=E6=9C=AC=E8=AF=B4=E6=98=8E?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/zh/faq.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/zh/faq.md b/docs/zh/faq.md index 109aa36d..3127fc62 100644 --- a/docs/zh/faq.md +++ b/docs/zh/faq.md @@ -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/) ``` +## 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 依赖。