Usually the project will use spring, but the source has not been in-depth understanding. Take advantage of this period of time a little idle, began to study the spring source. Here is the spring source of the environment to build.
Mainly divided into the following steps:
① installation Jdk,gradle,git
② Download Spring Framework code from GitHub
③ compiled into the IDE.
The first step of the installation process is skipped.
After the JDK is successfully installed, it is output via java-v:
Gradle install the entire post through input Gradle-verson
The version is older because I installed it before.
and git
The first step above has been completed.
The second step is to download the source code from GitHub.
If you are using idea. The following is a procedure for configuring GitHub users.
① configuring Git and pointing to the local installation path
② Configure GitHub account and test
③ Clone Spring Framework code from GitHub
This operation is more time-consuming. After the download is completed in the docking directory will appear in the spring source code.
The second step above is complete.
The following is a more important step.
Because I'm using idea, I'm just referring to the method of introduction.
First run under the source path:
Gradlew:spring-oxm:compiletestjava to compile. This operation is also time consuming.
You can then import it by using (File-, New-Existing Sources, Navigate to directory, Select Build.gradle).
The final results are as follows:
Congratulations on all your import success. Start a fun source tour!!!
"Step by Step" Spring Source environment construction