下载安装 GitHub
地址:https://desktop.github.com/安装成功如图:
下载安装Gradle
地址:http://gradle.org/gradle-download/
解压:创建GRADLE_HOME系统变量,加入path中。cmd测试“gradle -version” 显示版本信息成功。
下载Spring源码
打开Git Shell : 输入 git clone git://github.com/SpringSource/Spring-framework.git 下载到创建的指定目录 D:\spring
导入Eclipse
命令行执行Spring-framework目录下的import-into-eclispe.bat 。执行了多次,崩溃的时候终于执行成功导入eclipse成功。(执行了多次)
或在Spring-framework目录命令行中执行gradle eclipse -x :eclipse (执行一次成功)
遇到的错误
下载
hamcrest-core.jar 包
GroovyDynamicElementReader cannot be resolved to a type
安装eclipse中的groovy插件。
地址:http://dist.springsource.org/milestone/GRECLIPSE/e4.4/
弄了一下午,蛋碎啊,各种百度。终于好了。还好没放弃。