- 預(yù)先準(zhǔn)備環(huán)境
- Window 10
- JDK環(huán)境
- List item
- Gradle 以及其環(huán)境變量配置
- spring-framework源碼(https://gitee.com/mirrors/Spring-Framework)由于GitHub被微軟收購以后,國內(nèi)訪問速度堪憂,所以提供碼云的同步源碼倉庫、
- 導(dǎo)入 IDEA
這里的編譯過程是參考源碼文件夾中的 import-into-idea.md 文檔
- 執(zhí)行./gradlew :spring-oxm:compileTestJava 先對 Spring-oxm 模塊進(jìn)行預(yù)編譯。
- 在IDEA中 File -> New -> Project from Existing Sources -> Navigate to directory選擇build.grale文件打開
1
2
-
在spring-aspects中右鍵模塊load/upload modules,upload spring-aspects的三個子目錄
spring-aspects
spring-aspects_ main
spring-aspects test
3
4
5
等待項目編譯,時間可能會很長,請耐心等待。
Spring-framework跳過單測,可以執(zhí)行./gradlew build -x test