spring源碼第一章_擷取源碼並將源碼轉為eclipse工程

來源:互聯網
上載者:User

標籤:上下   管理   log   通過命令   最新   color   str   idea   配置   

1、通過http://gitforwindows.org/下載github

2、通過http://services.gradle.org/distributions/下載gradle;gardle類似於maven工程管理

  2.1、配置環境變數,檢查gradle是否可以載入:gradle -version;配置方法與配置jdk類似

3、通過命令工github上下載spring源碼:git clone git://github.com/SpringSource/Spring-framework.git

  注意:通過該命令會從github上下載最新的spring源碼,但是截止2017年12月27日,gradle的倉庫jcenter還沒有完全包含最新的spring源碼所有要的資源,所以如果用gradle編譯最新spring會包各種各樣的錯,列入不能再jcenter中找到某個類(我就出現了這種問題,修改了註冊表也沒有,最後才發現是此類問題)。所以建議通過

git clone -b 3.2.x https://github.com/spring-projects/spring-framework.git下載spring3.2的源碼,當然想下載其他版本的也可以通過https://github.com/spring-projects/spring-framework取github上找存在的spring源碼

 


4、進入下載的spring源碼的檔案夾,執行gradle cleanidea eclipse命令,將spring源碼轉為eclipse工程

spring源碼第一章_擷取源碼並將源碼轉為eclipse工程

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.