打开安装好的eclipse ,选择File->new->other。在弹出的框内选择Web->Dynamic Web Project , 选择Next


2)接下来就是导入Spring MVC安装包
我们现在要把Spring MVC相关的jar包导入到项目里。国内下载服务站点:
下载地址:http://repo.spring.io/simple/libs-release-local/org/springframework/spring/

我们选择 5.0.2


把这文件下的包都复制到项目的/WebContent/WEB-INF/lib 目录里。之后我们将包导入项目里。
在项目名上,点击右键先刷新下项目,因为刚刚复制jar进来,再选中项目名右击 Build Path - Configure Bulid Path... - Libraries - Add JARs...,在弹出的框里边找到项目的/WebContent/WEB-INF/lib,这样就看到刚刚你复制过来的 jar 包了。
还需要 commons-loging 包 去http://commons.apache.org/proper/commons-logging/download_logging.cgi 下载
网友评论