方案一 :也是最省事的方案,可以到spring官方下载已经和Eclipse版本集成好了的对应版本,可以下安装版,也可以下载压缩包直接解压可得。 windows系统可选的版本(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(只对JDK64位版) 方案二:在原有Eclipse for JEE中集成安装 虽然在方案一中可以直接下载集成版,不过对于已经再使用eclipse的用户有些不方便,所以可以考虑在原来使用的Eclipse环境中直接安装新软件包,具体如下: 1. 安装预备环境,只有在下面的环境下才能安装成功: 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更新管理中,屏蔽所有更新站点,操作如下: a. 在Eclipse中打开 Preferences -> Install/Update -> Available Update Sites b. 选择全部,通过点击“Disable”的右侧按钮,使所有更新站点失效。 c. 点击 “OK” 按钮关闭preferences 并保存当前改变。 3. 配置 springsource-tool-suite 相关更新站点。 a. 根据自己使用的Eclipse版本下载下面中对应的 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. 点击“Import…” 按钮,选择下载后的bookmarks.xml,点击打开按钮,完成导入 b. 核实站点更新列表中下面的站点是否为enabled状态,即勾选状态 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版本,经过根据多次测试,发现 Helios (http://download.eclipse.org/releases/helios)
一项有可能因为种种原因导致更新不成功。于是也需要将此项更新屏蔽,需要Disable掉,取消其前面复选款勾选,只保留和SpringSource 相关的两项,即 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) 此时点击“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)一项。 c. 从下面列表中选择安装的组件(我选的全部组件): d. 点击下一步开始安装 e. 在Install Details wizard page中点击下一步 f. 在Review License wizard page中选择“I accept the terms of the license agreement”一项。并点击“finished”按钮 g.系统将开始下载所有需要的组件包。 h.所有组件包下载完成后,将弹出一个“Security Warning dialog”提示框,点击“OK”按钮,完成安装 i.当软件更新对话框完成安装后重启Eclipse 5.核实安装结果: 打开“about”对话框:“Help -> About Eclipse”,将看到“Spring IDE”以及“SpringSource”等logo图标,如下图: b. 打开 “Spring” 视图:Window -> Open Perspective -> Other… ->Spring 6. 通过STS Dashboard安装spring扩展组件: STS 提供大量的SpringSource以及第三方插件,打开STS Dashboard: Help –> Dashboard,打开Dashboard后,点击 “Extension” 页卡,选择所需组件安装即可 
|