手动编译Spring4.2源码,以及把源码导入myEclipse中

前提条件,先在本地配置好JDK1.8, 安装好Git

执行下面命令:

1,双击Git Bash, 进入源码存放路径 cd E:Foler

2,git clone git@github.com:spring-projects/spring-framework.git

3,import-into-eclipse.sh

   执行完这一步后,每个目录会多.classpath, .project文件

4,gradlew install

  看网速,大概要一个多小时

  编译成功后,每一个工程下会多出文件夹buildlibs,包括编译后的jar包,以及源码包

5,在MyEclipse的编辑窗口,按 Ctrl + Shift + T 打开查看源代码窗口,输入你想查找的类,当你点击OK按钮的时候,如果没有导入源代码包就会有提示

点击导入按钮,选择上一步编译后的包,如spring-core-4.2.3.RELEASE-sources.jar

参考:https://github.com/spring-projects/spring-framework

         http://www.cnblogs.com/shi-blog/p/4132183.html

         直接通过该链接下载对应的包:http://repo.spring.io/milestone/org/springframework



签名:删除冗余的代码最开心,找不到删除的代码最痛苦!
原文地址:https://www.cnblogs.com/season2009/p/5238483.html