Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to import Spring Framework source code into idea

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article introduces the relevant knowledge of "how to import Spring Framework source code into idea". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

First, install gradle locally

Note: the gradle version cannot be too high. The version I use is gradle-4.10.3.

Download the gradle installation package, unzip it in a folder, and configure the environment variables for gradle.

GRADLE_USER_HOME indicates the location of the repositories configured with gradle, otherwise it is stored on disk C by default.

Second, import the source code of spring framework 2.1 compile spring-oxm

Before importing idea, go to the spring-framework directory, open the cmd command line in this directory, and execute the following command:

Gradlew.bat cleanIdea: spring-oxm:compileTestJava

The presence of BUILD SUCCESSFUL is successful.

2.2 Import idea

Open your Idea,import-> Select spring-framework directory-> Import Project Type Select Gradle-> next-> finish

It takes some time for idea to import this process. During this period, you need to enter Project Setting (ctrl+alt+shift+s) and click Modules-- > spring-aspects-- > Excluded.

When all the build tools in idea have been loaded, it will be successful.

Third, the problems encountered 3.1 cmd download gradle installation package is slow

Manually download the gradle installation version of the command box prompt, and there is a download link in the cmd command box, which is always displayed during the download. (slow network speed may cause failure)

Store it in the configured gradlerepo, close the cmd command box, reopen it, and it will skip the download. If there is no configuration, it defaults to disk C. My position is as follows:

The contents of the red box in the picture are folders that are automatically generated during download and cannot be changed or deleted.

3.2 problems in the build process in idea

An error message will be displayed in the build widget box, which can be solved by Baidu and Google.

This is the end of the introduction of "how to import Spring Framework source code into idea". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report