Spring和Mybatis整合需要导入的依赖
程序员文章站
2022-05-24 18:42:38
spring和mybatis整合需要导入的依赖: junit junit 4.12 ...
spring和mybatis整合需要导入的依赖:
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
</dependency>
<dependency>
<!--mybatis的依赖-->
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
<version>3.4.6</version>
</dependency>
<!--mybatis和spring集成的依赖-->
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-spring</artifactId>
<version>1.3.1</version>
</dependency>
<!--mysql驱动依赖-->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.32</version>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
</dependency>
<!--junit测试-->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
<!-- spring依赖 -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>5.0.3.RELEASE</version>
</dependency>
<!--spring事务-->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
<version>5.0.3.RELEASE</version>
</dependency>
<dependency>
<!-- spring操作数据库 -->
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>5.0.3.RELEASE</version>
</dependency>
<!--阿里的连接池-->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>1.0.9</version>
</dependency>
</dependencies>
<build>
<!--目的是把src/main/java目录中的xml文件包含在输出结果中,输出classes中-->
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
</build>
本文地址:https://blog.csdn.net/weixin_43725517/article/details/108033561
推荐阅读
-
Spring和Mybatis整合需要导入的依赖
-
**Mybatis和Spring整合的时候 sqlSessionFactory出问题了!!求指点**
-
MyBatis与Spring的整合(传统的DAO方式和Mapper接口方式)
-
Proxool & Mybatis整合的配置及例子(无spring依赖)
-
MyBatis3.x和Spring3.x的整合
-
Spring和Mybatis整合需要导入的依赖
-
Spring和Mybatis整合的过程(详细的很)
-
Mybatis3和Spring3整合的三种方法
-
spring和mybatis的整合方式
-
Spring+SpringMVC+MyBatis+easyUI整合优化篇(十四)谈谈写博客的原因和项目优化