---
title: "Eclipse导入Spring、Hibernate源码"
author: "jerry_chen"
date: "2013-10-28T16:34:57Z"
tags: []
categories: ["开源软件"]
slug: "eclipse-spring-hibernate"
draft: false
lastmod: "2013-10-30T17:07:23Z"
id: 1965717
url: "https://jerry-chen.iteye.com/blog/1965717"
---

1、用git下载spring源码包

     spring源码的git地址：git clone git://github.com/SpringSource/spring-framework.git

     参考：[https://github.com/spring-projects/spring-framework/#building-from-source](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