首页 > 编程语言 > 详细

idea下的Spring5.x源码编译、阅读

时间:2019-12-09 10:14:14      阅读:316      评论:0      收藏:0      [点我收藏+]

一.下载spring源码

git clone git@github.com:spring-projects/spring-framework.git

二.预编译

参考import-into-idea.md文件

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 -> Modules)
4. Code away

这里翻译一下

1.进入进入spring-framework目录,执行命令  ./gradlew :spring-oxm:compileTestJava

2.启动idea,File -> New -> Project from Existing Sources -> Navigate to directory -> Select build.gradle

3.等待编译完成

三.编写测试demo

四.spring每个模块都有test,大家可以进去跟踪调试。

idea下的Spring5.x源码编译、阅读

原文:https://www.cnblogs.com/cracker13/p/12008831.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!