1. 安装sts方式一:在线安装
选择eclipse菜单栏:help—》Eclipse Marketplace—》搜索sts—》选择Spring Tools 3 Add-on安装;
2. 安装sts方式二:离线安装【推荐】
2.1. 下载插件包
- 通过eclipse的help栏中“about eclipse ide”查看eclipse版本;
- 根据eclipse版本,在官网中 https://spring.io/tools3/sts/legacy 找到对应插件;
- 点击对应的zip后,复制以下弹窗的“网址”内容;
- 修改网址中的红色内容:https://download.springsource.com/release/STS/3.7.0.RELEASE/dist/e4.5/spring-tool-suite-3.7.0.RELEASE-e4.5-win32-x86_64.zip
- STS --> TOOLS/update
- dist 删掉
- spring-tool-suite --> springsource-tool-suite
- win32-x86_64.zip --> updatesite.zip
- 修改后:https://download.springsource.com/release/TOOLS/update/3.7.0.RELEASE/e4.5/springsource-tool-suite-3.7.0.RELEASE-e4.5-updatesite.zip
- 根据修改后的网址下载插件包放在windows上:D:\sts\springsource-tool-suite-3.7.0.RELEASE-e4.5-updatesite.zip
2.2 安装插件
Eclipse --> Help --> Install new Sofware --> add
–> next --> 接收协议 --> finish即可 --> 重启eclipse在windows:preference中可看到spring;