maven——pom.xml 青旅半醒 2022-01-07 18:35 270阅读 0赞 设置/使用 变量 ![ContractedBlock.gif][] ![ExpandedBlockStart.gif][] <-- 设置变量名 --> <properties> <spring.version>5.1.4.RELEASE</spring.version> </properties> <!-- 设置变量名 --> ${spring.version} 设置变量 Spring包 ![ContractedBlock.gif][] ![ExpandedBlockStart.gif][] 1 <dependency> 2 <groupId>org.springframework</groupId> 3 <artifactId>spring-core</artifactId> 4 <version>${spring.version}</version> 5 </dependency> 6 7 <dependency> 8 <groupId>org.springframework</groupId> 9 <artifactId>spring-beans</artifactId> 10 <version>${spring.version}</version> 11 </dependency> 12 13 <dependency> 14 <groupId>org.springframework</groupId> 15 <artifactId>spring-context</artifactId> 16 <version>${spring.version}</version> 17 </dependency> 18 19 <dependency> 20 <groupId>org.springframework</groupId> 21 <artifactId>spring-context-support</artifactId> 22 <version>${spring.version}</version> 23 </dependency> 24 25 <dependency> 26 <groupId>org.springframework</groupId> 27 <artifactId>spring-aop</artifactId> 28 <version>${spring.version}</version> 29 </dependency> 30 31 <dependency> 32 <groupId>org.springframework</groupId> 33 <artifactId>spring-aspects</artifactId> 34 <version>4.0.9.RELEASE</version> 35 </dependency> 36 37 <dependency> 38 <groupId>org.springframework</groupId> 39 <artifactId>spring-tx</artifactId> 40 <version>${spring.version}</version> 41 </dependency> 42 43 <dependency> 44 <groupId>org.springframework</groupId> 45 <artifactId>spring-web</artifactId> 46 <version>${spring.version}</version> 47 </dependency> 48 49 <dependency> 50 <groupId>org.springframework</groupId> 51 <artifactId>spring-jdbc</artifactId> 52 <version>${spring.version}</version> 53 </dependency> Spring包 SpringMVC包 ![ContractedBlock.gif][] ![ExpandedBlockStart.gif][] <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>${spring.version}</version> </dependency> SpringMVC MyBatis ![ContractedBlock.gif][] ![ExpandedBlockStart.gif][] 1 <dependency> 2 <groupId>org.mybatis</groupId> 3 <artifactId>mybatis</artifactId> 4 <version>3.4.6</version> 5 </dependency> MyBatis log4j ![ContractedBlock.gif][] ![ExpandedBlockStart.gif][] 1 <dependency> 2 <groupId>log4j</groupId> 3 <artifactId>log4j</artifactId> 4 <version>1.2.17</version> 5 </dependency> log4j mysql ![ContractedBlock.gif][] ![ExpandedBlockStart.gif][] 1 <dependency> 2 <groupId>mysql</groupId> 3 <artifactId>mysql-connector-java</artifactId> 4 <version>5.1.45</version> 5 </dependency> mysql 单元测试junit ![ContractedBlock.gif][] ![ExpandedBlockStart.gif][] 1 <dependency> 2 <groupId>junit</groupId> 3 <artifactId>junit</artifactId> 4 <version>4.12</version> 5 <scope>test</scope> 6 </dependency> junit 转载于:https://www.cnblogs.com/xj76149095/p/10298877.html [ContractedBlock.gif]: https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif [ExpandedBlockStart.gif]: /images/20211220/9156076d3f62441c8713877a3efa4449.png
还没有评论,来说两句吧...