码迷,mamicode.com
首页 > 编程语言 > 详细

maven添加Spring jar

时间:2015-03-11 17:00:05      阅读:246      评论:0      收藏:0      [点我收藏+]

标签:

 

技术分享

双击打开,可以直接在pom.xml添加代码,其实对于初学者没必要这样添加,打开后:

技术分享

技术分享

点击add:

技术分享

再添加

spring-webmvc
spring-orm

就够springMVC的基本开发了

添加之后,版本不同可能jar包也不同

技术分享

第一次添加可能会有点慢,需要网络,若出现类似提示

Missing artifact org.springframework:spring-core:jar:4.1.5.RELEASE:compile
Missing artifact org.springframework:spring-webmvc:jar:4.1.5.RELEASE:compile
Missing artifact org.springframework:spring-web:jar:4.1.5.RELEASE:compile

请根据具体缺少的jar在http://repo1.maven.org/maven2/org/springframework/中查找对应的下载,放到maven对应的路径下

若下载慢,可以使用代理,http://pachong.org/,打开网页输入网址下载 会快一点

技术分享

maven添加Spring jar

标签:

原文地址:http://www.cnblogs.com/liuminglu/p/4326492.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!