开始学习spring-framework。
准备工作:
1.将 framework源码 地址:https://github.com/spring-projects/spring-framework。 Fork到自己的github中,地址:https://github.com/chijiaoluohan/spring-framework。
2.下载GitHubDesktop可视化工具,将项目clone到本地。
3.因为源码是基于gradle的,所以下载并且安装gradle。
4.源码目录中,有用Markdown语法写的说明。如图:

其中的内容:
1. Precompile `spring-oxm` with `./gradlew :spring-oxm:compileTestJava`
2. Import into IntelliJ (File -> New -> Project from Existing Sources -> Navigate to directory -> Select build.gradle)
3. When prompted exclude the `spring-aspects` module (or after the import via File-> Project Structure

本文介绍了如何将spring-framework源码导入IDEA进行学习和研究。首先,从GitHubFork并下载源码,接着安装并使用Gradle。通过执行gradlew.bat完成预编译,然后在IntelliJ IDEA中导入项目,排除spring-aspects模块,最后设置自动导入和Gradle参数,等待构建完成,成功显示目录结构即表示导入成功。
idea导入源码&spm=1001.2101.3001.5002&articleId=102741023&d=1&t=3&u=51b94e743c2d4877a41d62509aeba253)
426

被折叠的 条评论
为什么被折叠?



