This article has participated in the weekend study program, click to see more details

The spring-Framework version of this article is 5.3.4

Operating Environment Configuration

git

ignore

jdk

The openJDk1.8 version I adopted is recommended to download the address of AdoptOpenJDK from the official website

To build you will need Git and JDK 8 update 262 or later. Update 262 or later is required due to the dependency on Java Flight Recorder (JFR) types. Note, however, that Oracle JDKs do not include the JFR types. Thus, we recommend an AdoptOpenJDK distribution or similar that includes the JFR types. Be sure that your JAVA_HOME environment variable points to the jdk1.8.0 folder extracted from the JDK download.

Translated into Chinese:

To build, you need Git and JDK 8 Update 262 or later. Update 262 or later is required because of the dependency on the Java Flight Recorder (JFR) type. Note, however, that the Oracle JDK does not include JFR types. Therefore, we recommend using AdoptOpenJDK distributions or similar distributions that contain JFR types. Make sure your JAVA_HOME environment variable points to the JDK1.8.0 folder extracted from the JDK download.

gradle

The gradle version I use locally is 6.5. You can download it from the official website and configure the local environment

Build the spring-Framework source code

Fork official warehouse

Spring – Framework github repository

Github.com/spring-proj…

Fork to Github’s own local repository

Import the source code into IDEA

Modify the gradle configuration file to aliyun

maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}

Q&A

  1. The jdk.jfr package does not exist
  • Upgrade the JDK version to JDK11
  • Idea Gradle configures the JDK version

Running effect

The resources

  1. The official wiki

Github.com/spring-proj…

Give a preview of the next one

Spring – framework extension point