1 导包

  02 mybatis环境搭建 【spring + mybatis】

 1 <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">
 2   <modelVersion>4.0.0</modelVersion>
 3   <groupId>cn.xiangxu.note</groupId>
 4   <artifactId>spring_mybatis</artifactId>
 5   <version>0.0.1-SNAPSHOT</version>
 6   <packaging>war</packaging>
 7   <dependencies>
 8       <dependency>
 9           <groupId>org.springframework</groupId>
10           <artifactId>spring-webmvc</artifactId>
11           <version>3.2.8.RELEASE</version>
12       </dependency>
13       <dependency>
14           <groupId>org.mybatis</groupId>
15           <artifactId>mybatis</artifactId>
16           <version>3.2.8</version>
17       </dependency>
18       <dependency>
19           <groupId>org.mybatis</groupId>
20           <artifactId>mybatis-spring</artifactId>
21           <version>1.2.3</version>
22       </dependency>
23       <dependency>
24           <groupId>commons-dbcp</groupId>
25           <artifactId>commons-dbcp</artifactId>
26           <version>1.4</version>
27       </dependency>
28       <dependency>
29           <groupId>mysql</groupId>
30           <artifactId>mysql-connector-java</artifactId>
31           <version>5.1.37</version>
32       </dependency>
33       <dependency>
34           <groupId>org.springframework</groupId>
35           <artifactId>spring-jdbc</artifactId>
36           <version>3.2.8.RELEASE</version>
37       </dependency>
38       <dependency>
39           <groupId>junit</groupId>
40           <artifactId>junit</artifactId>
41           <version>4.12</version>
42       </dependency>
43   </dependencies>
44 </project>
jar包的pom.xml

相关文章:

  • 2022-12-23
  • 2021-08-18
  • 2021-06-12
  • 2021-12-17
  • 2021-05-01
  • 2021-11-22
  • 2021-09-02
猜你喜欢
  • 2021-06-06
  • 2022-12-23
  • 2021-07-18
  • 2022-02-14
  • 2021-08-18
  • 2021-09-06
相关资源
相似解决方案