maven引入spring4.x所有依赖

在pom.xml文件中加入下面语句,然后在idea工具中import change,然后就自动下载相应的包

  1. <properties>  
  2.     <org.springframework.version>4.2.0.RELEASEorg.springframework.version>  
  3. properties>  
  4. <dependencies>  
  5.       
  6.     <dependency>  
  7.         <groupId>org.springframeworkgroupId>  
  8.         <artifactId>spring-aopartifactId>  
  9.         <version>${org.springframework.version}version>  
  10.     dependency>  
  11.     <dependency>  
  12.         <groupId>org.springframeworkgroupId>  
  13.         <artifactId>spring-aspectsartifactId>  
  14.         <version>${org.springframework.version}version>  
  15.     dependency>  
  16.     <dependency>  
  17.         <groupId>org.springframeworkgroupId>  
  18.         <artifactId>spring-beansartifactId>  
  19.         <version>${org.springframework.version}version>  
  20.     dependency>  
  21.     <dependency>  
  22.         <groupId>org.springframeworkgroupId>  
  23.         <artifactId>spring-contextartifactId>  
  24.         <version>${org.springframework.version}version>  
  25.     dependency>  
  26.     <dependency>  
  27.         <groupId>org.springframeworkgroupId>  
  28.         <artifactId>spring-context-supportartifactId>  
  29.         <version>${org.springframework.version}version>  
  30.     dependency>  
  31.     <dependency>  
  32.         <groupId>org.springframeworkgroupId>  
  33.         <artifactId>spring-coreartifactId>  
  34.         <version>${org.springframework.version}version>  
  35.     dependency>  
  36.     <dependency>  
  37.         <groupId>org.springframeworkgroupId>  
  38.         <artifactId>spring-expressionartifactId>  
  39.         <version>${org.springframework.version}version>  
  40.     dependency>  
  41.     <dependency>  
  42.         <groupId>org.springframeworkgroupId>  
  43.         <artifactId>spring-instrumentartifactId>  
  44.         <version>${org.springframework.version}version>  
  45.     dependency>  
  46.     <dependency>  
  47.         <groupId>org.springframeworkgroupId>  
  48.         <artifactId>spring-instrument-tomcatartifactId>  
  49.         <version>${org.springframework.version}version>  
  50.     dependency>  
  51.     <dependency>  
  52.         <groupId>org.springframeworkgroupId>  
  53.         <artifactId>spring-jdbcartifactId>  
  54.         <version>${org.springframework.version}version>  
  55.     dependency>  
  56.     <dependency>  
  57.         <groupId>org.springframeworkgroupId>  
  58.         <artifactId>spring-jmsartifactId>  
  59.         <version>${org.springframework.version}version>  
  60.     dependency>  
  61.     <dependency>  
  62.         <groupId>org.springframeworkgroupId>  
  63.         <artifactId>spring-messagingartifactId>  
  64.         <version>${org.springframework.version}version>  
  65.     dependency>  
  66.     <dependency>  
  67.         <groupId>org.springframeworkgroupId>  
  68.         <artifactId>spring-ormartifactId>  
  69.         <version>${org.springframework.version}version>  
  70.     dependency>  
  71.     <dependency>  
  72.         <groupId>org.springframeworkgroupId>  
  73.         <artifactId>spring-oxmartifactId>  
  74.         <version>${org.springframework.version}version>  
  75.     dependency>  
  76.     <dependency>  
  77.         <groupId>org.springframeworkgroupId>  
  78.         <artifactId>spring-testartifactId>  
  79.         <version>${org.springframework.version}version>  
  80.     dependency>  
  81.     <dependency>  
  82.         <groupId>org.springframeworkgroupId>  
  83.         <artifactId>spring-txartifactId>  
  84.         <version>${org.springframework.version}version>  
  85.     dependency>  
  86.     <dependency>  
  87.         <groupId>org.springframeworkgroupId>  
  88.         <artifactId>spring-webartifactId>  
  89.         <version>${org.springframework.version}version>  
  90.     dependency>  
  91.     <dependency>  
  92.         <groupId>org.springframeworkgroupId>  
  93.         <artifactId>spring-webmvcartifactId>  
  94.         <version>${org.springframework.version}version>  
  95.     dependency>  
  96.     <dependency>  
  97.         <groupId>org.springframeworkgroupId>  
  98.         <artifactId>spring-webmvc-portletartifactId>  
  99.         <version>${org.springframework.version}version>  
  100.     dependency>  
  101.     <dependency>  
  102.         <groupId>org.springframeworkgroupId>  
  103.         <artifactId>spring-websocketartifactId>  
  104.         <version>${org.springframework.version}version>  
  105.     dependency>  
  106.       
  107. dependencies>  

你可能感兴趣的:(SSM框架)