博客
关于我
spring源码阅读环境搭建过程
阅读量:394 次
发布时间:2019-03-05

本文共 1252 字,大约阅读时间需要 4 分钟。

文章目录

1.前提条件

不要安装gradle或者不配置gradle环境变量,可以配置GRADLE_USER_HOME。

GRADLE_USER_HOME指的是你需要配置的环境变量。该环境变量决定了执行 project/gradle/gradle-rapper.jar时下载 project/gradle/gradle-wrapper.properties中指定版本gradle的存放位置。

2. 下载spring 5.0.x

下载spring 5.0.x到本地,用idea打开,利用idea下载对应的jar包。

build.gradle文件改配置

buildscript {	repositories {		maven { url 'https://maven.aliyun.com/repository/spring-plugin' } // 增加这个仓库		gradlePluginPortal()		maven { url "https://repo.spring.io/plugins-release" }	}............省略	repositories {		maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' } // 增加这个仓库		maven{ url 'https://maven.aliyun.com/nexus/content/repositories/jcenter'} // 增加这个仓库		mavenCentral()		maven { url "https://repo.spring.io/libs-spring-framework-build" }	}	...........省略

3. 参考spring根目录import-into-idea.md

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

  1. 打开命令行到spring目录,执行命令:./gradlew :spring-oxm:compileTestJava
  2. 导入idea工程,执行文件build.gradle

差不多就大功告成。

转载地址:http://fthwz.baihongyu.com/

你可能感兴趣的文章
Netty工作笔记0034---Netty架构设计--线程模型
查看>>
Netty工作笔记0035---Reactor模式图剖析
查看>>
Netty工作笔记0036---单Reactor单线程模式
查看>>
Netty工作笔记0037---主从Reactor多线程
查看>>
Netty工作笔记0038---Netty模型--通俗版
查看>>
Netty工作笔记0039---Netty模型--详细版
查看>>
Netty工作笔记0040---Netty入门--服务端1
查看>>
Netty工作笔记0041---Netty入门--服务端2
查看>>
Netty工作笔记0042---Netty入门--编写客户端
查看>>
Netty工作笔记0043---单Reactor多线程模式
查看>>
Netty工作笔记0044---Netty案例源码分析
查看>>
Netty工作笔记0044---scheduledTaskQueue
查看>>
Netty工作笔记0045---Netty模型梳理
查看>>
Netty工作笔记0045---异步模型原理剖析
查看>>
Netty工作笔记0046---TaskQueue自定义任务
查看>>
Netty工作笔记0046---异步模型原理剖析
查看>>
Netty工作笔记0047---Http服务程序实例
查看>>
Netty工作笔记0048---Http服务过滤资源
查看>>
Netty工作笔记0049---阶段内容梳理
查看>>
Netty工作笔记0050---Netty核心模块1
查看>>