springboot源码构建

springboot源码的构建

首先下载源码:
https://github.com/spring-projects/spring-boot
选择自己想要选择的版本。
然后首先编译一遍项目,使用cmd进入项目目录:
由于我的在E盘,运行了如下命令
springboot源码构建
mvn install -DskipTests -Pfast
这个运行时间非常漫长,慢慢等。中途可能会构建失败,多次编译会成功。

编译完了之后导入idea。
首先build
springboot源码构建
然后运行spring-boot-project/spring-boot-test/src/test/java/org。
springboot源码构建

运行完了之后就新建一个module作为测试。file–>New–>module.
springboot源码构建springboot源码构建

这个时候源码测试的模块就建立好了。
springboot源码构建

这里源码就弄好了,中途可能会遇到其它错误。可以多次尝试