surroundings
spring boot version: the Spring-the Boot-2.1.x
the JDK version: jdk1.8
Maven Version: 3.5.0 (beginning with version 3.5.0 is not the result of various error)
I downloaded this version 3.5.0 of Maven
https://archive.apache.org/dist/maven/maven-3/3.5.0/binaries/
Compile source code
Recommended configuration Ali cloud images, or download a variety rely too slow
Download the source code from GitHub portal
into the project root directory, execute the following command
mvn clean install -DskipTests -Pfast
If the network to provide executive order
./mvnw clean install -DskipTests -Pfast
Will first download then execute a maven (we use the local line)
compiled the following tips will be successful
Debugging source code
Changed a bit pom file the main project, the introduction of spring-boot-samples modules, so that we can use this module to debug the source code
<modules>
<module>spring-boot-project</module>
<!-- Samples are built via the invoker plugin -->
<module>spring-boot-samples</module>
<module>spring-boot-samples-invoker</module>
<module>spring-boot-tests</module>
</modules>
I start the main method of spring-boot-sample-tomcat module
E:\spring\spring-boot-2.1.x>curl http://localhost:8080/
Hello World
Finally happy debugging source code
Reference blog
[0]https://www.javatt.com/p/18140
[1]https://blog.csdn.net/hzygcs/article/details/86102971