本文是基于Spring Boot2.1.0的版本进行构建,已搭建过其他版本且编译成功的朋友可忽略此文!
● IntelliJ IDEA
● JDK1.8
● Maven3.5 以上(必须)
https://github.com/spring-projects/spring-boot.git
如果有条件的话,可以直接去GitHub上下载
如果没有条件,可以下载下方蓝奏云的代码,版本同上!
https://wwp.lanzouw.com/iSRe709k685e
<disable.checks>truedisable.checks>
mvn clean install -DskipTests -Pfast
我在编译的这个过程中好像在下载一个什么包,下载挺久的,我按照网上的教程来的时候,人家没有提及这茬,我感觉自己等了将近七八分钟,按住CTRL c想终止的,结果他反而继续编译了(苦笑~),这我不好验证究竟是不是这个步骤可以忽略的,我整个编译过程持续了十分钟
此时我们挑选spring-boot-samples 模块下的spring-boot-sample-tomcat 样例项目来测试好了,此时启动SampleTomcatApplication的main函数,启动成功界面如下:

打开浏览器访问: http://localhost:8080/,如下图:

至此,spring boot环境准备完成!