pom.xml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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>springDemo02</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. <!--用来指定要依赖的外部库坐标-->
  15. <dependencies>
  16. <!--导入spring的坐标spring-context,对应版本是5.2.10.RELEASE-->
  17. <dependency>
  18. <groupId>org.springframework</groupId>
  19. <artifactId>spring-context</artifactId>
  20. <version>5.2.10.RELEASE</version>
  21. </dependency>
  22. <!--引入Java操作MySQL依赖-->
  23. <dependency>
  24. <groupId>com.mysql</groupId>
  25. <artifactId>mysql-connector-j</artifactId>
  26. <version>8.0.33</version>
  27. </dependency>
  28. <!--引入阿里巴巴提供的管理数据库的数据源(连接池)依赖-->
  29. <!--
  30. 数据库连接池
  31. DBCP连接池——太老淘汰了
  32. C3P0连接池——太老淘汰了
  33. druid连接池——阿里巴巴提供的
  34. -->
  35. <dependency>
  36. <groupId>com.alibaba</groupId>
  37. <artifactId>druid</artifactId>
  38. <version>1.1.16</version>
  39. </dependency>
  40. </dependencies>
  41. </project>