Idea下 调试Spring源代码

巧了我就是萌 提交于 2020-01-31 19:41:49

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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!