eclipse版本不同,对应的STS版本也不一样。
这里,看自己的eclipse版本:
我们这里是oxygen 4.7.0
https://spring.io/tools3/sts/legacy
查看eclipse对应版本的sts。
看上图,注意区分,不是以上的内容。是下图:
下载后的文件是:
右键解压缩:
说明,压缩文件名字过于长,需要缩短,改成文件:
然后右键解压缩:只有一个错误,忽略:
解压缩后的文件夹是:
双击打开:
将plugins文件夹复制粘贴到eclipse目录下:(在复制粘贴以前,将eclipse的plugins文件夹进行备份)
该覆盖的覆盖,该合并文件夹的合并文件夹。重启eclipse即可。
yml文件出现提示。
这里要说明一下遇到的坑:
在一些网站下载了文件:
继续操作,会报错误:
Your original request has been modified.
"Eclipse Quicksearch" will be ignored because a newer version is already installed.
Cannot complete the install because one or more required items could not be found.
Software being installed: Spring IDE Batch Extension (optional) 3.9.0.201707061730-RELEASE (org.springframework.ide.eclipse.batch.feature.feature.group 3.9.0.201707061730-RELEASE)
Missing requirement: Spring IDE Live Beans Graph 3.9.0.201707061730-RELEASE (org.springframework.ide.eclipse.beans.ui.livegraph 3.9.0.201707061730-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 Batch Extension (optional) 3.9.0.201707061730-RELEASE (org.springframework.ide.eclipse.batch.feature.feature.group 3.9.0.201707061730-RELEASE)
To: org.springframework.ide.eclipse.feature.feature.group 0.0.0
Cannot satisfy dependency:
From: Spring IDE Core (required) 3.9.0.201707061730-RELEASE (org.springframework.ide.eclipse.feature.feature.group 3.9.0.201707061730-RELEASE)
To: org.springframework.ide.eclipse.beans.ui.livegraph [3.9.0.201707061730-RELEASE]
等等一堆错误。
就算在线下载也会报错。所以这里我们采用第一种方法,用sts里面的plugins文件夹覆盖eclipse的plugins文件夹的操作。