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

你可能感兴趣的文章
Neighbor2Neighbor 开源项目教程
查看>>
neo4j图形数据库Java应用
查看>>
Neo4j图数据库_web页面关闭登录实现免登陆访问_常用的cypher语句_删除_查询_创建关系图谱---Neo4j图数据库工作笔记0013
查看>>
Neo4j图数据库的介绍_图数据库结构_节点_关系_属性_数据---Neo4j图数据库工作笔记0001
查看>>
Neo4j图数据库的数据模型_包括节点_属性_数据_关系---Neo4j图数据库工作笔记0002
查看>>
Neo4j安装部署及使用
查看>>
Neo4j电影关系图Cypher
查看>>
Neo4j的安装与使用
查看>>
Neo4j(1):图数据库Neo4j介绍
查看>>
Neo4j(2):环境搭建
查看>>
Neo4j(3):Neo4j Desktop安装
查看>>
Neo4j(4):Neo4j - CQL使用
查看>>
Neo图数据库与python交互
查看>>
NEO改进协议提案1(NEP-1)
查看>>
Neo私链
查看>>
NervanaGPU 项目使用教程
查看>>
Nerves 项目教程
查看>>
nessus快速安装使用指南(非常详细)零基础入门到精通,收藏这一篇就够了
查看>>
Nessus漏洞扫描教程之配置Nessus
查看>>
Nest.js 6.0.0 正式版发布,基于 TypeScript 的 Node.js 框架
查看>>