方案一 :也是最省事的方案,可以到spring官方下載已經(jīng)和Eclipse版本集成好了的對(duì)應(yīng)版本,可以下安裝版,也可以下載壓縮包直接解壓可得。 windows系統(tǒng)可選的版本(Mac OS X和Linux版本與此類似) springsource-tool-suite-2.5.2.SR1-e3.6.2-win32-installer.exe or springsource-tool-suite-2.5.2.SR1-e3.6.2-win32.zip
springsource-tool-suite-2.5.2.SR1-e3.6.2-win32-x86_64-installer.exe or springsource-tool-suite-2.5.2.SR1-e3.6.2-win32-x86_64.zip(只對(duì)JDK64位版) 方案二:在原有Eclipse for JEE中集成安裝 雖然在方案一中可以直接下載集成版,不過對(duì)于已經(jīng)再使用eclipse的用戶有些不方便,所以可以考慮在原來使用的Eclipse環(huán)境中直接安裝新軟件包,具體如下: 1. 安裝預(yù)備環(huán)境,只有在下面的環(huán)境下才能安裝成功: a. Eclipse 3.5 or Eclipse 3.6 b. Eclipse WTP 3.1 or greater 可以去 http://www.eclipse.org/downloads/ 下載“Eclipse IDE for JEE Developers”版 2.在Eclipse更新管理中,屏蔽所有更新站點(diǎn),操作如下: a. 在Eclipse中打開 Preferences -> Install/Update -> Available Update Sites b. 選擇全部,通過點(diǎn)擊“Disable”的右側(cè)按鈕,使所有更新站點(diǎn)失效。 c. 點(diǎn)擊 “OK” 按鈕關(guān)閉preferences 并保存當(dāng)前改變。 3. 配置 springsource-tool-suite 相關(guān)更新站點(diǎn)。 a. 根據(jù)自己使用的Eclipse版本下載下面中對(duì)應(yīng)的 bookmarks 文件: Eclipse 3.5: http://dist.springsource.com/release/TOOLS/composite/e3.5/bookmarks.xml Eclipse 3.6: http://dist.springsource.com/release/TOOLS/composite/e3.6/bookmarks.xml b. 在Eclipse中打開 Preferences -> Install/Update -> Available Update Sites a. 點(diǎn)擊“Import…” 按鈕,選擇下載后的bookmarks.xml,點(diǎn)擊打開按鈕,完成導(dǎo)入 b. 核實(shí)站點(diǎn)更新列表中下面的站點(diǎn)是否為enabled狀態(tài),即勾選狀態(tài) Eclipse 3.5: Galileo (http://download.eclipse.org/releases/galileo) SpringSource Update Site for Eclipse 3.5 (http://dist.springsource.com/release/TOOLS/update/e3.5) SpringSource Update Site for Eclipse 3.5 ( Dependencies) (http://dist.springsource.com/release/TOOLS/composite/e3.5) Eclipse 3.6: Helios (http://download.eclipse.org/releases/helios) SpringSource Update Site for Eclipse 3.6 (http://dist.springsource.com/release/TOOLS/update/e3.6) SpringSource Update Site for Eclipse 3.6 (Dependencies) (http://dist.springsource.com/release/TOOLS/composite/e3.6) 我使用的是Helios版本,經(jīng)過根據(jù)多次測(cè)試,發(fā)現(xiàn) Helios (http://download.eclipse.org/releases/helios)
一項(xiàng)有可能因?yàn)榉N種原因?qū)е赂虏怀晒。于是也需要將此?xiàng)更新屏蔽,需要Disable掉,取消其前面復(fù)選款勾選,只保留和SpringSource 相關(guān)的兩項(xiàng),即 SpringSource Update Site for Eclipse 3.6 (Release) (http://dist.springsource.com/release/TOOLS/update/e3.6) SpringSource Update Site for Eclipse 3.6 (Release + Dependencies) (http://dist.springsource.com/release/TOOLS/composite/e3.6) 此時(shí)點(diǎn)擊“OK”按鈕保存。 4. 從update manager中安裝 STS 組件 : a. 打開更新管理器: Help -> Install New Software … b. 從“Work with”下拉列表中選擇“SpringSource Update Site for Eclipse 3.6”(或者SpringSource Update Site for Eclipse 3.5)一項(xiàng)。 c. 從下面列表中選擇安裝的組件(我選的全部組件): d. 點(diǎn)擊下一步開始安裝 e. 在Install Details wizard page中點(diǎn)擊下一步 f. 在Review License wizard page中選擇“I accept the terms of the license agreement”一項(xiàng)。并點(diǎn)擊“finished”按鈕 g.系統(tǒng)將開始下載所有需要的組件包。 h.所有組件包下載完成后,將彈出一個(gè)“Security Warning dialog”提示框,點(diǎn)擊“OK”按鈕,完成安裝 i.當(dāng)軟件更新對(duì)話框完成安裝后重啟Eclipse 5.核實(shí)安裝結(jié)果: 打開“about”對(duì)話框:“Help -> About Eclipse”,將看到“Spring IDE”以及“SpringSource”等logo圖標(biāo),如下圖: b. 打開 “Spring” 視圖:Window -> Open Perspective -> Other… ->Spring 6. 通過STS Dashboard安裝spring擴(kuò)展組件: STS 提供大量的SpringSource以及第三方插件,打開STS Dashboard: Help –> Dashboard,打開Dashboard后,點(diǎn)擊 “Extension” 頁(yè)卡,選擇所需組件安裝即可 
|