1、用git下载spring源码包
spring源码的git地址:git clone git://github.com/SpringSource/spring-framework.git
参考:https://github.com/spring-projects/spring-framework/#building-from-source
2、用gradle构建eclipse工程
直接执行import-into-eclipse.bat或者import-into-eclipse.sh(linux),经过漫长时间的等待,构建完成。
3、导入eclipse
目录里有.project文件就可以把spring的源码导入到eclipse。
Hibernate和Spring都采用gradle构建,方法一样,Hibernate的git路径:git://github.com/hibernate/hibernate-orm.git