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

你可能感兴趣的文章
Navicat连接sqlserver提示:未发现数据源名并且未指定默认驱动程序
查看>>
navicat连接远程mysql数据库
查看>>
Navicat通过存储过程批量插入mysql数据
查看>>
Navicat(数据库可视化操作软件)安装、配置、测试
查看>>
navigationController
查看>>
NB-IOT使用LWM2M移动onenet基础通信套件对接之APN设置
查看>>
NBear简介与使用图解
查看>>
Vue过滤器_使用过滤器进行数据格式化操作---vue工作笔记0015
查看>>
Ncast盈可视 高清智能录播系统 IPSetup.php信息泄露+RCE漏洞复现(CVE-2024-0305)
查看>>
NCNN中的模型量化解决方案:源码阅读和原理解析
查看>>
NCNN源码学习(1):Mat详解
查看>>
nc命令详解
查看>>
NC综合漏洞利用工具
查看>>
ndarray 比 recarray 访问快吗?
查看>>
ndk-cmake
查看>>
NdkBootPicker 使用与安装指南
查看>>
ndk特定版本下载
查看>>
NDK编译错误expected specifier-qualifier-list before...
查看>>
Neat Stuff to Do in List Controls Using Custom Draw
查看>>
Necurs僵尸网络攻击美国金融机构 利用Trickbot银行木马窃取账户信息和欺诈
查看>>