likes
comments
collection
share

⌛ Spring源码环境搭建 IDEA + Gradle

作者站长头像
站长
· 阅读数 52

软件选择

IntelliJ IDEA 2023.3.1

⌛ Spring源码环境搭建 IDEA + Gradle

gradle 版本 gradle- 6.8.2

1.配置gradle 阿里云镜像、在gradle下载地址的init.d文件夹中新建 init.gradle

allprojects {
    repositories {

        mavenLocal()
 
        maven { url 'https://maven.aliyun.com/repository/public/' }
        maven { url 'https://maven.aliyun.com/repository/spring/'}
      maven { url 'https://maven.aliyun.com/repository/google/'}
      maven { url 'https://maven.aliyun.com/repository/gradle-plugin/'}
      maven { url 'https://maven.aliyun.com/repository/spring-plugin/'}
      maven { url 'https://maven.aliyun.com/repository/grails-core/'}
      maven { url 'https://maven.aliyun.com/repository/apache-snapshots/'}
        
        mavenCentral()
    }
}

2.将gralde配置在本地环境中

⌛ Spring源码环境搭建 IDEA + Gradle

配置gradle下载文件的地址

⌛ Spring源码环境搭建 IDEA + Gradle

测试gradle是否成功

⌛ Spring源码环境搭建 IDEA + Gradle

3.idea配置gradle

⌛ Spring源码环境搭建 IDEA + Gradle

4.下载spring源码

Spring在github上的仓库地址是:github.com/spring-proj…

5.在idea导入gradle 刷新gradle

⌛ Spring源码环境搭建 IDEA + Gradle

转载自:https://juejin.cn/post/7349094068844347401
评论
请登录