pom.xml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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.cdxw.spring</groupId>
  7. <artifactId>spring_ioc_annotation</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <packaging>jar</packaging>
  10. <properties>
  11. <maven.compiler.source>17</maven.compiler.source>
  12. <maven.compiler.target>17</maven.compiler.target>
  13. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  14. </properties>
  15. <dependencies>
  16. <!-- 基于Maven依赖传递性,导入spring-context依赖即可导入当前所需所有jar包 -->
  17. <!-- <dependency>
  18. <groupId>org.springframework</groupId>
  19. <artifactId>spring-context</artifactId>
  20. <version>5.3.1</version>
  21. </dependency>-->
  22. <!-- https://mvnrepository.com/artifact/org.springframework/spring-context -->
  23. <dependency>
  24. <groupId>org.springframework</groupId>
  25. <artifactId>spring-context</artifactId>
  26. <version>5.3.20</version>
  27. </dependency>
  28. <!-- junit测试 -->
  29. <dependency>
  30. <groupId>junit</groupId>
  31. <artifactId>junit</artifactId>
  32. <version>4.12</version>
  33. <scope>test</scope>
  34. </dependency>
  35. </dependencies>
  36. </project>