打開安裝好的eclipse ,選擇File->new->other。在彈出的框內(nèi)選擇Web->Dynamic Web Project , 選擇Next
2)接下來就是導(dǎo)入Spring MVC安裝包
我們現(xiàn)在要把Spring MVC相關(guān)的jar包導(dǎo)入到項(xiàng)目里。國內(nèi)下載服務(wù)站點(diǎn):
下載地址:http://repo.spring.io/simple/libs-release-local/org/springframework/spring/
我們選擇 5.0.2
把這文件下的包都復(fù)制到項(xiàng)目的/WebContent/WEB-INF/lib 目錄里。之后我們將包導(dǎo)入項(xiàng)目里。
在項(xiàng)目名上,點(diǎn)擊右鍵先刷新下項(xiàng)目,因?yàn)閯倓倧?fù)制jar進(jìn)來,再選中項(xiàng)目名右擊?Build Path - Configure Bulid Path... - Libraries - Add JARs...,在彈出的框里邊找到項(xiàng)目的/WebContent/WEB-INF/lib,這樣就看到剛剛你復(fù)制過來的 jar 包了。
還需要 commons-loging 包 ?去http://commons.apache.org/proper/commons-logging/download_logging.cgi 下載