Install spring source code (under windows)

In the spring source code description, it is said that compiling spring4.3.x and above requires JDK1.8

1. Configure JDK8

Be sure to configure JDK8 or above, if it is 7 to 8, remember to restart after matching the number

 

2. Download and install git

https://git-scm.com/downloads   Download here and install it just like ordinary software

3. Download the spring source code

Right-click in a directory and git bash here appears

Enter the command first after clicking:

Execute first: git init (initialize the git environment in this directory)

Re-execute: git clone -b 4.3.x https://github.com/spring-projects/spring-framework.git (download the 4.3.x version of spring source code)

It takes a while to download  

4. After the download is complete, run import-into-eclipse.bat

 Then start to compile and download

It takes a certain amount of time. The internet speed is not good. It may take a few hours. It will take nearly 1 hour.

5. Import eclipse

Use eclipse to import the required modules. If an error indicates that the dependent modules are not imported, the easiest way is to import all the modules

Every project needs to be imported with eclipse

After importing, clean it, spring-bean-groovy may report errors

Install the groovy plugin

In Help -> Install New Software of eclipse, click Add to add the download link of groovy:
http://dist.springsource.org/milestone/GRECLIPSE/e4.4/

If eclipse is 4.5, you can choose

http://dist.springsource.org/milestone/GRECLIPSE/e4.5/

 

Here is a compiled spring source code download, import it and use it, no need to spend a few hours to compile

https://download.csdn.net/download/l1509214729/10619440

Guess you like

Origin blog.csdn.net/l1509214729/article/details/81914088