Spring 源码学习 01:环境的搭建

1 环境准备

  • Git
  • JDK 17
  • 6.2.x 分支
  • Gradle 8.11.1
  • IDEA 2024.1.1

Spring 源码仓库地址:https://github.com/spring-projects/spring-framework

Gradle 8.11.1 下载地址:
https://mirrors.aliyun.com/gradle/distributions/v8.11.1/gradle-8.11.1-bin.zip

2 环境搭建

2.1 克隆代码

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

用idea 打开不要加载项目

2.2 Gradle 下载

修改Gradle下载地址:
https://mirrors.aliyun.com/gradle/distributions/v8.11.1/gradle-8.11.1-bin.zip
在这里插入图片描述

2.3 修改远程仓库地址

maven { url 'https://maven.aliyun.com/nexus/content/groups/public/'}
maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter'}

在这里插入图片描述

2.4 配置 Gradle

在这里插入图片描述

3 创建测试项目进行测试

在这里插入图片描述

plugins {
    id("java")
}

description = "Spring-zcl"

repositories {
	maven { url 'https://maven.aliyun.com/nexus/content/groups/public/'}
	maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter'}
    mavenCentral()
}

dependencies {
	api(project(":spring-context"))
	api(project(":spring-core"))
}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值