阅读spring源码碰到的一些问题

在尝试从Github下载并预编译Spring源码的过程中遇到了速度慢、git错误和Gradle构建失败等问题。通过更换下载方式、调整Gradle版本和文件位置,最终解决了问题。建议遇到类似问题的开发者可以尝试不同的解决方案。
摘要由CSDN通过智能技术生成
  • 开始

最近想导入 Spring 源码进行阅读,兴致冲冲就去 Github 下载。但是用 git 下载也太慢了吧。开了全局还是龟速,最后还报 error。小问号满脑子都是小朋友???

于是就直接下载了 zip 包,解压后有个 import-to-idea.md ,打开看一看。

The following has been tested against IntelliJ IDEA 2016.2.2

## Steps

_Within your locally cloned spring-framework working directory:_

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

## Known issues

1. `spring-core` and `spring-oxm` should be pre-compiled due to repackaged dependencies.
See `*RepackJar` tasks in the build and https://youtrack
评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值