Eclipse——安裝Spring插件
摘要:本文主要學習如何在Eclipse中安裝Spring工具。
下載插件包
找到Eclipse的版本
打開Eclipse,在工具欄找到“Help”菜單,在彈出的下拉選擇中點擊“About Eclipse”:
就能看到Eclipse的版本了:
下載對應的插件包
根據Eclipse的版本下載對應的插件包,Spring官網好像已經不再提供早期版本的下載頁面了,但是原有的下載地址仍然可用:
http://download.springsource.com/release/TOOLS/update/3.8.3.RELEASE/e4.6/springsource-tool-suite-3.8.3.RELEASE-e4.6.2-updatesite.zip
http://download.springsource.com/release/TOOLS/update/3.8.2.RELEASE/e4.6/springsource-tool-suite-3.8.2.RELEASE-e4.6.1-updatesite.zip
http://download.springsource.com/release/TOOLS/update/3.8.1.RELEASE/e4.6/springsource-tool-suite-3.8.1.RELEASE-e4.6-updatesite.zip
http://download.springsource.com/release/TOOLS/update/3.8.0.RELEASE/e4.6/springsource-tool-suite-3.8.0.RELEASE-e4.6-updatesite.zip
http://download.springsource.com/release/TOOLS/update/3.7.3.RELEASE/e4.5/springsource-tool-suite-3.7.3.RELEASE-e4.5.2-updatesite.zip
http://download.springsource.com/release/TOOLS/update/3.7.2.RELEASE/e4.5/springsource-tool-suite-3.7.2.RELEASE-e4.5.1-updatesite.zip
http://download.springsource.com/release/TOOLS/update/3.7.1.RELEASE/e4.5/springsource-tool-suite-3.7.1.RELEASE-e4.5.1-updatesite.zip
http://download.springsource.com/release/TOOLS/update/3.7.0.RELEASE/e4.5/springsource-tool-suite-3.7.0.RELEASE-e4.5-updatesite.zip
http://download.springsource.com/release/TOOLS/update/3.6.4.RELEASE/e4.4/springsource-tool-suite-3.6.4.RELEASE-e4.4.2-updatesite.zip
http://download.springsource.com/release/TOOLS/update/3.6.3.RELEASE/e4.4/springsource-tool-suite-3.6.3.RELEASE-e4.4.1-updatesite.zip
http://download.springsource.com/release/TOOLS/update/3.6.2.RELEASE/e4.4/springsource-tool-suite-3.6.2.RELEASE-e4.4.1-updatesite.zip
http://download.springsource.com/release/TOOLS/update/3.6.1.RELEASE/e4.4/springsource-tool-suite-3.6.1.RELEASE-e4.4-updatesite.zip
http://download.springsource.com/release/TOOLS/update/3.6.0.RELEASE/e4.4/springsource-tool-suite-3.6.0.RELEASE-e4.4-updatesite.zip
http://download.springsource.com/release/TOOLS/update/3.5.1.RELEASE/e4.3/springsource-tool-suite-3.5.1.RELEASE-e4.3.2-updatesite.zip
http://download.springsource.com/release/TOOLS/update/3.5.0.RELEASE/e4.3/springsource-tool-suite-3.5.0.RELEASE-e4.3.2-updatesite.zip
http://download.springsource.com/release/TOOLS/update/3.4.0.RELEASE/e4.3/springsource-tool-suite-3.4.0.RELEASE-e4.3.1-updatesite.zip
http://download.springsource.com/release/TOOLS/update/3.3.0.RELEASE/e4.3/springsource-tool-suite-3.3.0.RELEASE-e4.3-updatesite.zip
雖然Eclipse的版本是4.4.2,但如果使用4.4.2版本適配的插件還是有問題的,建議使用相鄰版本試一下,這里使用的之前的4.4版本Eclipse適配的插件。
安裝插件包
打開“Help”菜單,找到“Install New Software...”:
點擊“Add...”:
在彈出的頁面中點擊“Archive...”,找到之前下載好的插件包,點擊“OK”完成:
在插件列表頁面選擇以“Spring IDE”結尾的插件:
將下面設置項中最后一項“Contact all update sites ...”前面的勾去掉,來避免聯網安裝。如圖:
然后一路點擊“Next”,直到遇到:
點擊上面的單選項,然后點擊“Finish”完成,然后就是插件安裝了:
安裝完成之后會提示:
選擇“Yes”重啟Eclipse,在重啟后打開“Windows”菜單下最后一個“Preferences”設置:
看到有“Spring”即表示安裝插件成功。
