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

添加了依赖之后
Idea下 调试Spring源代码
没有找到要依赖的工程
Idea下 调试Spring源代码

参考文档:
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

相关文章:

  • 2021-11-11
  • 2021-04-21
  • 2021-08-19
  • 2022-12-23
  • 2021-10-19
  • 2022-01-16
  • 2022-02-07
  • 2021-11-07
猜你喜欢
  • 2021-04-18
  • 2021-07-19
  • 2021-09-10
  • 2021-10-18
  • 2022-12-23
  • 2021-07-14
  • 2021-05-02
相关资源
相似解决方案