1. Spring当前项目使用Gradle构建,本地需安装Gradle环境,http://www.gradle.org/downloads,下载后解压,在~/.bash_profile中配置GRADLE_HOME;
2. Spring4使用jdk8
3. 安装git,Mac OS集成了git
4.groovy,Spring4有用到groovy,下载解压并配置环境变量
5. git clone git://github.com/SpringSource/Spring-framework.git 克隆Spring源码到本地
6.在Spring-framework路径下,执行./import-into-eclipse.sh,该脚本自动构建eclipse项目
7. 导入工程,root source为Spring-framework
8. 如果eclipse没有安装groovy插件,则spring-beans-groovy包中的GroovyBeanDefinitionReader.java会报错,因为eclipse不能编译groovy脚本。插件下载地址:http://dist.springsource.org/milistone/GRECLIPSE/e4.4,e4.4 对应eclipse版本