Spring安装配置(1)—在eclipse中安装springsource tool suite

最近想系统的学习一下spring,先在eclipse中安装一个springsource tool suite吧,就这个东西,我安装了两个下午,第一个下午踩坑,第二个下午才开始安装完成,甚至有些坑我都没有解决。

一、安装的心路历程

首先我在网上下载了一个springsource tool suite(springsource-tool-suite-3.9.9.RELEASE-e4.9.0-updatesite.zip),照着安装步骤来了一遍,重启了eclipse之后,返现welcome页面没有spring IDE,我在eclipse中打开windows→preference,发现里面没有spring。然后我又安装了一遍,紧盯着每一个步骤,终于发现了问题。

最后查看details,内容是:

Cannot complete the install because one or more required items could not be found.
  Software being installed: Spring IDE AJDT Integration (optional) 3.9.9.201906180643-RELEASE (org.springframework.ide.eclipse.ajdt.feature.feature.group 3.9.9.201906180643-RELEASE)
  
  Missing requirement: Spring IDE Live Beans Graph 3.9.9.201906180643-RELEASE (org.springframework.ide.eclipse.beans.ui.livegraph 3.9.9.201906180643-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 AJDT Integration (optional) 3.9.9.201906180643-RELEASE (org.springframework.ide.eclipse.ajdt.feature.feature.group 3.9.9.201906180643-RELEASE)
    To: org.springframework.ide.eclipse.feature.feature.group 0.0.0
	
  Cannot satisfy dependency:
    From: Spring IDE Core (required) 3.9.9.201906180643-RELEASE (org.springframework.ide.eclipse.feature.feature.group 3.9.9.201906180643-RELEASE)
    To: org.springframework.ide.eclipse.beans.ui.livegraph [3.9.9.201906180643-RELEASE]

问题1:Cannot complete the install because one or more required items could not be found.

网上查了,说是缺少必须的依赖,按照日志,我缺少的是:org.springframework.ide.eclipse.ajdt.feature.feature.group。网上说要安装这个,但是说实在的,找不到下载的地方。https://spring.io/tools/sts/ 这个下载地址打不开。

问题2:Cannot satisfy dependency,最后也没有找到解决办法。

之后我又在网上查了一下,说是eclipse和springsource tool suite的版本必须要匹配,所以我要在官网(https://spring.io/tools/sts/)上下载,发现这个网址打不开。

走到这一步,只能是换eclipse版本了吧。我在eclipse官网上下载了4.9版本,因为我的springsource tool suite只和eclipse4.9兼容。所以我就从eclise官网上下载了4.9.0的eclipse。

解决问题参考的博客:https://blog.csdn.net/flying_monkey_1/article/details/100066874

二、成功安装的步骤:

第一步:检查版本

检查eclipse和springsource tool suite是否匹配,从spingsource tool suite的名称可以看出他适应的是4.9的eclipse版本。

我的eclipse版本是:4.9

第二步:下载springsource tool suite

检查完版本之后,应该是下载springsource tool suite ,但是https://spring.io/tools/sts/ 打不开,无法下载。

建议参考这个博客,试着编辑自己的下载地址:

https://blog.csdn.net/qq_36880602/article/details/105194773

https://blog.csdn.net/flying_monkey_1/article/details/100066874

 

第三步:进入安装界面

打开eclipse ,在help中打开install new software...,如图:

第四步:选择springsource tool suite

按照如图所示,打开之后在页面上选择Add,然后在弹框中选择archive,如图:

 

第五步:选择安装

为了避免安装过慢,先勾选Spring IDE四项,然后进行下载,如图:

 

第六步:进行安装

进行下载安装,如图所示:

cannot perform operation,computing alternate solutions,may take a while:2/15意思是不能执行安装,正在评估别的解决方案。

评估完的解决方案是keep my installation the same and modify the items being installed to be compatible,执行下一步的时候选择keep my installation the same and modify the items being installed to be compatible。

我选择show original error and build my own solution是要查看安装的时候存在哪些错误,这里选择安装的时候,要选择keep my installation the same and modify the items being installed to be compatible。

继续点next进行安装ing

选择Select All,继续安装ing

第七部:安装完成

最后,完成安装,打开eclipse之后,在welcome页面可以显示。

打开windows→preference,点开spring,可以看到spring已经在eclipse中了。

下载完成之后,安装完成。

 

  • 1
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值