进入spring 官网
https://spring.io/projects/spring-framework
点击GitHub图标
找到对应想下载的版本
查看官网说明,点击Build from Source
修改 源码包下 build.gradle文件配置内容。更改Maven仓库为阿里云仓库
repositories {
maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}
maven{ url 'https://maven.aliyun.com/nexus/content/repositories/jcenter'}
}
修改这里面的Maven地址
cmd到spring源码下:执行gradlew :spring-oxm:compileTestJava
导入idea
(File -> New -> Project from Existing Sources -> Navigate to directory -> Select build.gradle)
完成导入。