Spring | 在Eclipse上搭建开发环境
2018-06-26 本文已影响6人
EclipseO2
一、安装Spring插件
1. 下载插件(http://spring.io/tools/sts/all)

根据自己的Eclipse版本,选择相应的插件版本,如果没有对应版本,则去百度下载
2. 在Eclipse上安装插件
点击 Help — Install New SoftWare — Add — Archive

然后只要选择对应的带有 Spring IDE 的插件,然后一直点 Next 就 OK 了
注意:最好不要勾选最后一项因为他会默认帮你自动更新

安装完后,会提示你重新启动Eclipse,重新打开,如果出现以下界面,则说明安装成功

3. 去官网下载对应的 jar 包(http://repo.spring.io/libs-release-local/org/springframework/spring/)
如我下载的5.0.7的版本,解压之后是这样的

打开 lib 文件夹,选择以下 jar 包,同时添加 logging 的依赖包

此时在 Eclipse 上搭建 Spring 环境就完成了