构建spring相关项目

github加速

  1. 使用gitee克隆github中的仓库,然后使用gitee克隆(不推荐, 如果需要和github保持一致需要一直复制)
  2. 下载油猴插件, 安装链接脚本, 非广告
    在这里插入图片描述

spring-framework

  1. 克隆代码到本地, github
  2. gradle可以指定gradle版本编译,最好下载源工程指定的版本
  3. 可修改maven仓库,找到目录下settings.gradle,在原有的基础上添加阿里仓库
pluginManagement {
	repositories {
		maven { url "https://maven.aliyun.com/repository/public" }
		maven { url "https://maven.aliyun.com/repository/jcenter" }
		maven { url "https://maven.aliyun.com/repository/gradle-plugin" }
		maven { url "https://maven.aliyun.com/repository/central" }
		...
  1. 找到根路径下的import-into-idea.md文件
  2. 按照步骤操作
_Within your locally cloned spring-framework working directory:_

7. Precompile `spring-oxm` with `./gradlew :spring-oxm:compileTestJava`
# 在window当前目录运行
./gradlew.bat :spring-oxm:compileTestJava

2. Import into IntelliJ (File -> New -> Project from Existing Sources -> Navigate to directory -> Select build.gradle)
# 使用idea导入当前项目
 
3. When prompted exclude the `spring-aspects` module (or after the import via File-> Project Structure -> Modules)
# 排除spring-aspects模块

4. Code away
# 编译整个工程
./gradlew.bat

spring-boot

  • 修改maven仓库后直接用idea打开构建即可
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值