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