一、SpringBoot简介:
spring Boot使开发独立的,产品级别的基于Spring的应用变得非常简单,你只需"just run"。 我们为Spring平台及第三方库提供开箱即用的设置,这样你就可以有条不紊地开始。多数Spring Boot应用需要很少的Spring配置。你可以使用Spring Boot创建Java应用,并使用java -jar启动它或采用传统的war部署方式。
Spring Tool Suite是一个基于eclipse的开发环境,它是为开发Spring应用程序而定制的。它提供了一个随时可用的环境来实现、调试、运行和部署您的Spring应用程序,包括关键的tc服务器的集成、关键的云铸造厂、Git、Maven、AspectJ,以及最新的Eclipse发行版。
与Spring工具套件一起使用的是关键tc服务器的开发版,它是为Spring优化的Apache Tomcat的替代。在它的Spring Insight控制台,tc Server Developer Edition提供了一个应用程序性能指标的图形化实时视图,让开发人员能够识别和诊断来自桌面的问题。
二、下载与本机安装的Eclipse对应的STS(Spring Tool Suite)
【切忌:安装与Eclipse版本对应的STS】
2.1 查看自己的Eclipse的版本: 4.6.3
Eclipse->Help->About Eclipse
2.2 跳转到STS所有历史版本下载页面:https://spring.io/tools/sts/legacy
找到对应Eclipse的版本。
但是进入官网看到的下载地址都是http://download.springsource.com/release/STS/3.8.4.RELEASE/dist/e4.6/spring-tool-suite-3.8.4.RELEASE-e4.6.3-win32-x86_64.zip格式的,切记不要下载,我们安装spring boot 插件需要下载 以 updatesite.zip结尾的压缩文件。
下面给出eclipse3.7.2插件包的路径:
官网路径:http://download.springsource.com/release/STS/2.9.2/dist/e3.7/springsource-tool-suite-2.9.2.RELEASE-e3.7.2-win32-x86_64.zip
那么如何下载呢?
复制出官网路径如下:
对照着上面3.7.2版本路径修改一下复制出的4.6.3官网路径中标红地方即可。修改规则:
(1)、STS --> TOOLS/update
(2)、dist 删掉
(3)、spring-tool-suite --> springsource-tool-suite
(4)、win32-x86_64.zip --> updatesite.zip
修改完即可得到4.5.2版本的spring boot 插件包路径(如下):
复制路径到浏览器回车即可下载。
或者
点击Spring Tool Suite网址:https://spring.io/tools/sts/all,下载对应版本的STS
三、STS插件的安装
3.1 Help->Install New Software
3.2点击"Add->Archive..",然后选择刚才下载的STS插件,并给插件起个名字,点击"OK"就行了
强调:不要勾选联网更新,否则很慢很慢!
下一步出现以下错误(没有出现的话跳过安装GEF步骤):
Details的内容为:
Cannot complete the install because one or more required items could not be found.
Software being installed: Spring IDE Integration, Flex and Web Services Extension (optional) 3.8.4.201703310634-RELEASE (org.springframework.ide.eclipse.integration.feature.feature.group 3.8.4.201703310634-RELEASE)
Missing requirement: Spring IDE Live Beans Graph 3.8.4.201703310634-RELEASE (org.springframework.ide.eclipse.beans.ui.livegraph 3.8.4.201703310634-RELEASE) requires 'bundle org.eclipse.zest.core [1.0.0,2.0.0)' but it could not be found
Cannot satisfy dependency:
From: Spring IDE Core (required) 3.8.4.201703310634-RELEASE (org.springframework.ide.eclipse.feature.feature.group 3.8.4.201703310634-RELEASE)
To: org.springframework.ide.eclipse.beans.ui.livegraph [3.8.4.201703310634-RELEASE]
Cannot satisfy dependency:
From: Spring IDE Integration, Flex and Web Services Extension (optional) 3.8.4.201703310634-RELEASE (org.springframework.ide.eclipse.integration.feature.feature.group 3.8.4.201703310634-RELEASE)
To: org.springframework.ide.eclipse.feature.feature.group 0.0.0
原因是没有安装STS依赖的GEF插件
解决办法:安装GEF插件。
安装GEF插件
打开Eclipse->Help->install new software。
填写插件名和下载地址:
Name:GEF
Location:http://download.eclipse.org/tools/gef/updates/releases/
点击Next
继续点击Next
勾选I accepte ……->Finish。
GEF插件安装完毕。
重新执行之前安装STS的步骤。
如果在window->preference 找到了Spring选项,说明安装成功。
参考: