博客
关于我
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高级查询~分页查询
查看>>
mysql高级查询之多条件的过滤查询
查看>>
MySQL高频面试题
查看>>
MySQL高频面试题的灵魂拷问
查看>>
MySQL(1)的使用 | SQL
查看>>
MySQL(2)DDL详解
查看>>
MySQL(3)DML详解
查看>>
MySQL(4)运算符 | 关联查询详解
查看>>
Mysql,group by分组查询、order by排序查询、join连接查询、union联合查询
查看>>
Mysql,sql文件导入和导出
查看>>
MYSQL:int类型升级到bigint,对PHP开发语言影响
查看>>
Mysql:mysql 5.X 报错 ERROR 1193 (HY000): Unknown system variable ‘validate_password_length‘
查看>>
MySQL:MySQL执行一条SQL查询语句的执行过程
查看>>
Mysql:SQL性能分析
查看>>
mysql:SQL按时间查询方法总结
查看>>
MySQL:什么样的字段适合加索引?什么样的字段不适合加索引
查看>>
MySQL:判断逗号分隔的字符串中是否包含某个字符串
查看>>
MySQL:某个ip连接mysql失败次数过多,导致ip锁定
查看>>
MySQL:索引失效场景总结
查看>>
Mysql:避免重复的插入数据方法汇总
查看>>