Idea下 調試Spring源代碼


1. 下載源代碼

https://github.com/spring-projects/spring-framework
我選擇版本5.1.x

2. 網上有說需要下載gradle,其實可以不用下載

3. build項目

4. 導入項目

需要注意的是 gradle 版本不對可能會出現很多奇奇怪怪的錯誤
總之不對的話就重來吧

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.5.1-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

添加了依賴之后

沒有找到要依賴的工程

參考文檔:
https://github.com/spring-projects/spring-framework/blob/master/import-into-idea.md
https://github.com/spring-projects/spring-framework/wiki/Build-from-Source
https://www.cnblogs.com/bingco/p/12082955.html


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM