eclipse4.10 安装sts
-
材料准备
寻找对应自己eclipse版本的spring-tool-suite
此处是离线安装(通过下载文件安装)
如何查看eclipse的版本:
在eclipse中help–>About eclipse IDE
spring tool suite官网下载:http://spring.io/tools/sts/all
对应我的eclipse4.10下载后的文件是:springsource-tool-suite-3.9.9.RELEASE-e4.10.0-updatesite.zip -
安装sts
1.按照离线方式
点击window–>install New Software–>Add–>Archive
点击Add添加
取消Contact all update sites during install to find required software 选项
点击Finish 之后等进度条过去后点击next
若next之后出现 警告(忘了截图) 按照警告提示来,点击第二个选项更新完某些插件(需要重启)再重新安装sts
之后eclipse会进行安装 右下角会有进度条 -
报错
若安装完(重启后)在window-Perference中没有找到spring相关设置
或者eclipse没有启动成功出现 An error has occurred.See the log file
解决:通过cmd命令cd 进入eclipse目录后打开eclipse 再次输入 eclipse-clean
-
spring版本对应jdk
spring3.2跟jdk1.8会冲突,需换成jdk1.7
出错信息:
java.lang.IllegalArgumentException
at org.springframework.asm.ClassReader.(Unknown Source)更改方式:
window–>Perference–>java–>compiler 更改版本
并需要在项目中的 Buildpath 中更改 Libraries的 jdk