spring5.X源码构建
第一種方式,按照官方構建,地址見:https://github.com/spring-projects/spring-framework/wiki/Build-from-Source
這種方式需要安裝GIt和gradle(下載地址:https://gradle.org/releases/)
第二種:eclipse構建
源碼地址:https://github.com/spring-projects/spring-framework.git
eclipse中切換到git視圖,選擇clone資源庫
錯誤解決方法:
?GroovyDynamicElementReader cannot be resolved to a type 報這個錯,需要安裝groovy插件
eclipse的groovy插件
https://github.com/groovy/groovy-eclipse/wiki
The type java.util.concurrent.Flow$Publisher cannot be resolved. It is indirectly referenced from required .class files
注意,我默認使用的是spring master分支,需要jdk9. 大家可以下載4.x,使用jdk8即可
如果非要看spring 5的源碼,idea新版支持jdk9, eclipse版本如果不支持需要安裝插件:http://www.eclipse.org/community/eclipse_newsletter/2015/june/article4.php
總結
以上是生活随笔為你收集整理的spring5.X源码构建的全部內容,希望文章能夠幫你解決所遇到的問題。