# 情景
今天在搭建springboot+mybatis环境的时候遇到的问题,大概率是版本导致的冲突问题
# 解决
1. 第一种解决方案
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
</dependency>
上面的配置换成下面的依赖
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>1.2.0</version>
</dependency>
2. 第二种解决方案
添加如下依赖
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid-spring-boot-starter</artifactId>
<version>1.1.9</version>
</dependency>
参考链接:https://www.cnblogs.com/dbaxyx/p/10663485.html
Property ‘sqlSessionFactory‘ or ‘sqlSessionTemplate‘ are required
最新推荐文章于 2025-11-06 12:31:51 发布
在搭建SpringBoot+Mybatis环境时遇到版本冲突问题,可能由不兼容的依赖引起。解决方案包括:1) 替换spring-boot-starter-jdbc依赖为mybatis-spring-boot-starter,并指定版本1.2.0;2) 添加阿里巴巴的Druid-Spring-Boot-Starter依赖,版本为1.1.9。参考链接提供了更多细节。
部署运行你感兴趣的模型镜像
您可能感兴趣的与本文相关的镜像
Llama Factory
模型微调
LLama-Factory
LLaMA Factory 是一个简单易用且高效的大型语言模型(Large Language Model)训练与微调平台。通过 LLaMA Factory,可以在无需编写任何代码的前提下,在本地完成上百种预训练模型的微调
2280

被折叠的 条评论
为什么被折叠?



