博客
关于我
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/

你可能感兴趣的文章
mysql查询总成绩的前3名学生信息
查看>>
mysql的cast函数
查看>>
mysql的InnoDB引擎索引为什么使用B+Tree
查看>>
mysql的logrotate脚本
查看>>
MySQL的on duplicate key update 的使用
查看>>
mysql的root用户无法建库的问题
查看>>
mysql的sql语句基本练习
查看>>
Mysql的timestamp(时间戳)详解以及2038问题的解决方案
查看>>
MySQL的常见命令
查看>>
mysql的数据类型有哪些?
查看>>
MySQL的错误:No query specified
查看>>
mysql索引
查看>>
mysql索引
查看>>
mysql索引、索引优化(这一篇包括所有)
查看>>
MySql索引为什么使用B+树
查看>>
mysql索引创建和使用注意事项
查看>>
MySQL索引原理以及查询优化
查看>>
Mysql索引底层结构的分析
查看>>
MySQL索引底层:B+树详解
查看>>
Mysql索引总结
查看>>