| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- <?xml version="1.0" encoding="UTF-8"?>
- <project xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>com.sf</groupId>
- <artifactId>springAndMybatis</artifactId>
- <version>1.0-SNAPSHOT</version>
- <properties>
- <maven.compiler.source>11</maven.compiler.source>
- <maven.compiler.target>11</maven.compiler.target>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- </properties>
- <dependencies>
- <!--导入spring的坐标spring-context,对应版本是5.2.10.RELEASE-->
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-context</artifactId>
- <version>5.2.10.RELEASE</version>
- </dependency>
- <!--引入Java操作MySQL依赖-->
- <!--
- 如果artifactId是多个单词组成,并且中间使用-进行分隔,那么就是某个厂商为了和另一个组织框架进行连接整合而开发的
- 开发的组织就是前面的那个单词
- 横线后面的是要整合的,要符合后面组织的依赖
- 比如:mysql-connector-j
- MySQL官方针对Java语言,专门开发的框架依赖
- -->
- <dependency>
- <groupId>com.mysql</groupId>
- <artifactId>mysql-connector-j</artifactId>
- <version>8.0.33</version>
- </dependency>
- <!--引入阿里巴巴提供的管理数据库的数据源(连接池)依赖-->
- <dependency>
- <groupId>com.alibaba</groupId>
- <artifactId>druid</artifactId>
- <version>1.1.16</version>
- </dependency>
- <!--引入mybatis的依赖坐标-->
- <dependency>
- <groupId>org.mybatis</groupId>
- <artifactId>mybatis</artifactId>
- <version>3.5.7</version>
- </dependency>
- <!--引入spring封装jdbc的依赖坐标-->
- <!--
- spring官方开发出来为了符合jdbc的规则的依赖框架
- -->
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-jdbc</artifactId>
- <version>5.2.10.RELEASE</version>
- </dependency>
- <!--引入spring操作mybatis的依赖坐标-->
- <!--
- mybatis官方为了符合spring的整合规则开发出来的框架依赖
- -->
- <dependency>
- <groupId>org.mybatis</groupId>
- <artifactId>mybatis-spring</artifactId>
- <version>1.3.0</version>
- </dependency>
- <!--引入Lombok依赖-->
- <dependency>
- <groupId>org.projectlombok</groupId>
- <artifactId>lombok</artifactId>
- <version>1.18.26</version>
- </dependency>
- <!--引入junit依赖-->
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.13</version>
- <scope>test</scope>
- </dependency>
- <!--引入spring整合junit依赖-->
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-test</artifactId>
- <version>5.2.10.RELEASE</version>
- </dependency>
- </dependencies>
- </project>
|