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