Spring4源码下载
来源:互联网 发布:js设置input必填 编辑:程序博客网 时间:2024/06/07 19:51
1、下载工具
下载最新的eclipse,因为最新版本的eclipse,自带git插件。已经有eclipse或者git的跳过此步骤。
http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/lunasr2
2、下载源码
打开eclipse,选择Windows——Preferences——Show View,找到Git Repositories,选择Clone 一个远程repositories。 在url输入框中输入如下地址,并设置一个本地地址,用于存放下载到得代码。
git://github.com/SpringSource/Spring-framework.git
这个过程比较慢,等下载完成后,在本地已经有了如下文件夹。
3、说明
spring不但将代码放在了git上,项目构建也改为由Gradle构建。所以,想把下载到得spring源码,转换成eclipse项目,还需要靠Gradle。幸运的是,我们刚才下载的文件中,已经包含了Gradle。
###NOTE###spring4.0源码构建项目,需要用到JDK1.8.0+,否则会失败,出现莫名奇妙的错误。
在刚才下载的文件中,有一个README.md文件,打开后,简单阅读。找到如下文字
## Building from Source
The Spring Framework uses a [Gradle][]-based build system. In the instructions
below, [`./gradlew`][] is invoked from the root of the source tree and serves as
a cross-platform, self-contained bootstrap mechanism for the build.
[Git][] and [OpenJDK 8 early access build 100 or later][JDK8 build]
Be sure that your `JAVA_HOME` environment variable points to the `jdk1.8.0` folder
extracted from the JDK download.
### Check out sources
`git clone git@github.com:spring-projects/spring-framework.git`
### Import sources into your IDE
Run `./import-into-eclipse.sh` or read `import-into-idea.md` as appropriate.
> **Note:** Per the prerequisites above, ensure that you have JDK 8 configured properly in your IDE.
###Install all spring-\* jars into your local Maven cache
`./gradlew install`
### Compile and test; build all jars, distribution zips, and docs
`./gradlew build`
… and discover more commands with `./gradlew tasks`. See also the [Gradle
build and release FAQ][].
<span style="font-family: Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);">下载jdk1.8,注意下载和自己操作系统匹配的版本</span>
<span style="font-family: Arial, Helvetica, sans-serif;">http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html</span>
下载安装后,记得添加环境变量
4、构建项目
5、项目导入eclipse
有报错,提示
GroovyDynamicElementReader cannot be resolved to a type
说明少groovy的jar包。
安装一个eclipse的groovy插件
在eclipse的 Help -> Install New Software 中,添加groovy的下载连接:
http://dist.springsource.org/milestone/GRECLIPSE/e4.4/
然后全选后,开始下载,下载完后,重启eclipse,然后clean一下项目就搞定了。
- spring4.0源码下载
- Spring4源码下载
- Spring4 MVC 整合Hibernate5 附源码下载
- Spring4源码下载编译并导入eclipse
- Spring4.2源码解析-下载源码并导入eclipse
- Mybatis1.2.2与spring4.1.6整合(附源码下载)
- SpringMVC+Spring4+Mybatis3集成,开发简单Web项目+源码下载
- SpringMVC+Spring4+Mybatis3集成,开发简单Web项目+源码下载
- SpringMVC+Spring4+Mybatis3集成,开发简单Web项目+源码下载
- Spring4源码分析(ClassPathXmlApplicationContext)
- 【持久化框架】SpringMVC+Spring4+Mybatis3集成,开发简单Web项目+源码下载
- 【持久化框架】SpringMVC+Spring4+Mybatis3集成,开发简单Web项目+源码下载
- 【持久化框架】SpringMVC+Spring4+Mybatis3集成,开发简单Web项目+源码下载
- 【持久化框架】SpringMVC+Spring4+Mybatis3集成,开发简单Web项目+源码下载
- 【持久化框架】SpringMVC+Spring4+Mybatis3集成,开发简单Web项目+源码下载
- 【持久化框架】SpringMVC+Spring4+Mybatis3集成,开发简单Web项目+源码下载
- 【持久化框架】SpringMVC+Spring4+Mybatis3集成,开发简单Web项目+源码下载
- 【持久化框架】SpringMVC+Spring4+Mybatis3 集成,开发简单Web项目+源码下载
- 【jzoj4935】【构造】
- 欢迎使用CSDN-markdown编辑器
- git 上传项目到服务器
- Android studio导入工程卡以及下载第三方jar慢的问题方案
- .9path图的制作
- Spring4源码下载
- java基础算法之因式分解
- CAN总线在嵌入式Linux下驱动程序的实现
- getResources.getColor弃用与取代
- 更新多个表的不同字段到一个表中
- 可枚举属性和不可枚举属性
- 单词翻转
- Nestable-master
- iOS10 本地通知