pom.xml 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>com.sf</groupId>
  7. <artifactId>springAndMybatis</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <properties>
  10. <maven.compiler.source>11</maven.compiler.source>
  11. <maven.compiler.target>11</maven.compiler.target>
  12. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  13. </properties>
  14. <dependencies>
  15. <!--导入spring的坐标spring-context,对应版本是5.2.10.RELEASE-->
  16. <dependency>
  17. <groupId>org.springframework</groupId>
  18. <artifactId>spring-context</artifactId>
  19. <version>5.2.10.RELEASE</version>
  20. </dependency>
  21. <!--引入Java操作MySQL依赖-->
  22. <!--
  23. 如果artifactId是多个单词组成,并且中间使用-进行分隔,那么就是某个厂商为了和另一个组织框架进行连接整合而开发的
  24. 开发的组织就是前面的那个单词
  25. 横线后面的是要整合的,要符合后面组织的依赖
  26. 比如:mysql-connector-j
  27. MySQL官方针对Java语言,专门开发的框架依赖
  28. -->
  29. <dependency>
  30. <groupId>com.mysql</groupId>
  31. <artifactId>mysql-connector-j</artifactId>
  32. <version>8.0.33</version>
  33. </dependency>
  34. <!--引入阿里巴巴提供的管理数据库的数据源(连接池)依赖-->
  35. <dependency>
  36. <groupId>com.alibaba</groupId>
  37. <artifactId>druid</artifactId>
  38. <version>1.1.16</version>
  39. </dependency>
  40. <!--引入mybatis的依赖坐标-->
  41. <dependency>
  42. <groupId>org.mybatis</groupId>
  43. <artifactId>mybatis</artifactId>
  44. <version>3.5.7</version>
  45. </dependency>
  46. <!--引入spring封装jdbc的依赖坐标-->
  47. <!--
  48. spring官方开发出来为了符合jdbc的规则的依赖框架
  49. -->
  50. <dependency>
  51. <groupId>org.springframework</groupId>
  52. <artifactId>spring-jdbc</artifactId>
  53. <version>5.2.10.RELEASE</version>
  54. </dependency>
  55. <!--引入spring操作mybatis的依赖坐标-->
  56. <!--
  57. mybatis官方为了符合spring的整合规则开发出来的框架依赖
  58. -->
  59. <dependency>
  60. <groupId>org.mybatis</groupId>
  61. <artifactId>mybatis-spring</artifactId>
  62. <version>1.3.0</version>
  63. </dependency>
  64. <!--引入Lombok依赖-->
  65. <dependency>
  66. <groupId>org.projectlombok</groupId>
  67. <artifactId>lombok</artifactId>
  68. <version>1.18.26</version>
  69. </dependency>
  70. <!--引入junit依赖-->
  71. <dependency>
  72. <groupId>junit</groupId>
  73. <artifactId>junit</artifactId>
  74. <version>4.13</version>
  75. <scope>test</scope>
  76. </dependency>
  77. <!--引入spring整合junit依赖-->
  78. <dependency>
  79. <groupId>org.springframework</groupId>
  80. <artifactId>spring-test</artifactId>
  81. <version>5.2.10.RELEASE</version>
  82. </dependency>
  83. </dependencies>
  84. </project>