maven管理jar,pom.xml导入spring依赖

  1. <properties>  
  2.     <junit.version>4.12</junit.version>  
  3.     <spring.version>4.3.9.RELEASE</spring.version>  
  4.     <commons-logging.version>1.2</commons-logging.version>  
  5.   
  6. </properties>  
  7. dependencies>  
  8.   
  9. <dependency>  
  10.     <groupId>junit</groupId>  
  11.     <artifactId>junit</artifactId>  
  12.     <version>${junit.version}</version>  
  13.     <scope>test</scope>  
  14. </dependency>  
  15.   
  16. <!-- 添加Spring依赖的jar包-->  
  17. <!--依赖注入包-->  
  18. <dependency>  
  19.     <groupId>org.springframework</groupId>  
  20.     <artifactId>spring-aop</artifactId>  
  21.     <version>${spring.version}</version>  
  22. </dependency>  
  23. <!--切片包-->  
  24. <dependency>  
  25.     <groupId>org.springframework</groupId>  
  26.     <artifactId>spring-aspects</artifactId>  
  27.     <version>${spring.version}</version>  
  28. </dependency>  
  29. <!-- Beans包-->  
  30. <dependency>  
  31.     <groupId>org.springframework</groupId>  
  32.     <artifactId>spring-beans</artifactId>  
  33.     <version>${spring.version}</version>  
  34. </dependency>  
  35. <!-- 容器包-->  
  36. <dependency>  
  37.     <groupId>org.springframework</groupId>  
  38.     <artifactId>spring-context</artifactId>  
  39.     <version>${spring.version}</version>  
  40. </dependency>  
  41. <!-- 容器依赖包-->  
  42. <dependency>  
  43.     <groupId>org.springframework</groupId>  
  44.     <artifactId>spring-context-support</artifactId>  
  45.     <version>${spring.version}</version>  
  46. </dependency>  
  47. <!-- 核心包-->  
  48. <dependency>  
  49.     <groupId>org.springframework</groupId>  
  50.     <artifactId>spring-core</artifactId>  
  51.     <version>${spring.version}</version>  
  52. </dependency>  
  53. <!-- 表达式包-->  
  54. <dependency>  
  55.     <groupId>org.springframework</groupId>  
  56.     <artifactId>spring-expression</artifactId>  
  57.     <version>${spring.version}</version>  
  58. </dependency>  
  59. <!--spring-framework-bom包-->  
  60. <dependency>  
  61.     <groupId>org.springframework</groupId>  
  62.     <artifactId>spring-framework-bom</artifactId>  
  63.     <version>${spring.version}</version>  
  64. </dependency>  
  65. <!--spring-instrument包-->  
  66. <dependency>  
  67.     <groupId>org.springframework</groupId>  
  68.     <artifactId>spring-instrument</artifactId>  
  69.     <version>${spring.version}</version>  
  70. </dependency>  
  71. <!--连接数据库包-->  
  72. <dependency>  
  73.     <groupId>org.springframework</groupId>  
  74.     <artifactId>spring-jdbc</artifactId>  
  75.     <version>${spring.version}</version>  
  76. </dependency>  
  77. <!--Spring消息包-->  
  78. <dependency>  
  79.     <groupId>org.springframework</groupId>  
  80.     <artifactId>spring-jms</artifactId>  
  81.     <version>${spring.version}</version>  
  82. </dependency>  
  83. <!--Spring信息包-->  
  84. <dependency>  
  85.     <groupId>org.springframework</groupId>  
  86.     <artifactId>spring-messaging</artifactId>  
  87.     <version>${spring.version}</version>  
  88. </dependency>  
  89. <!--Spring对象映射包-->  
  90. <dependency>  
  91.     <groupId>org.springframework</groupId>  
  92.     <artifactId>spring-orm</artifactId>  
  93.     <version>${spring.version}</version>  
  94. </dependency>  
  95. <!--spring-oxm包-->  
  96. <dependency>  
  97.     <groupId>org.springframework</groupId>  
  98.     <artifactId>spring-oxm</artifactId>  
  99.     <version>${spring.version}</version>  
  100. </dependency>  
  101. <!--Spring测试包-->  
  102. <dependency>  
  103.     <groupId>org.springframework</groupId>  
  104.     <artifactId>spring-test</artifactId>  
  105.     <version>${spring.version}</version>  
  106. </dependency>  
  107. <!--Spring事物管理包-->  
  108. <dependency>  
  109.     <groupId>org.springframework</groupId>  
  110.     <artifactId>spring-tx</artifactId>  
  111.     <version>${spring.version}</version>  
  112. </dependency>  
  113. <!--Spring文本项目包-->  
  114. <dependency>  
  115.     <groupId>org.springframework</groupId>  
  116.     <artifactId>spring-web</artifactId>  
  117.     <version>${spring.version}</version>  
  118. </dependency>  
  119.   
  120. <!--SpringMVC包-->  
  121. <dependency>  
  122.     <groupId>org.springframework</groupId>  
  123.     <artifactId>spring-webmvc</artifactId>  
  124.     <version>${spring.version}</version>  
  125. </dependency>  
  126. <!--spring-websocket包-->  
  127. <dependency>  
  128.     <groupId>org.springframework</groupId>  
  129.     <artifactId>spring-websocket</artifactId>  
  130.     <version>${spring.version}</version>  
  131. </dependency>  
  132.   
  133. <!--Spring 依赖commons-logging包-->  
  134. <dependency>  
  135.     <groupId>commons-logging</groupId>  
  136.     <artifactId>commons-logging</artifactId>  
  137.     <version>${commons-logging.version}</version>  
  138. </dependency>  
  139.   
  140. /dependencies>  
  • 3
    点赞
  • 19
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值