同步操作将从 Gitee 极速下载/Spring-Framework_old1 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
This document will guide you through the process of importing the Spring Framework projects into Eclipse or the Spring Tool Suite (STS). It is recommended that you have a recent version of Eclipse. As a bare minimum you will need Eclipse with full Java 17 support and Eclipse Buildship.
The following instructions have been tested against STS 4.12.0 (download) (based on Eclipse 4.21) with Eclipse Buildship. The instructions should work with the latest Eclipse distribution as long as you install Buildship. Note that STS 4 comes with Buildship preinstalled.
If you are using Eclipse 4.21, you will need to install Java 17 Support for Eclipse 2021-09 (4.21) from the Eclipse Marketplace.
When instructed to execute ./gradlew
from the command line, be sure to execute it within your locally cloned spring-framework
working directory.
Info
(Preferences → Java → Compiler → Errors/Warnings → Deprecated and restricted API → Forbidden reference (access rule)).spring-aspects
project.
spring-test
module.
org.springframework.test.context.testng.TestNGTestSuite
class as a "JUnit 5" test class in Eclipse.spring-oxm
from the command line with ./gradlew :spring-oxm:check
../gradlew cleanEclipse eclipse
from the command line.spring-framework
directory → Select Finish).
spring-aspects
project from the import, if prompted, or close it after the import.spring-oxm
project and wish to have the generated sources available, add the build/generated-sources/jaxb
folder to the build path (right click on the jaxb
folder and select "Build Path → Use as Source Folder").
build
folder in the spring-oxm
project, ensure that the "Gradle build folder" is not filtered out from the view. This setting is available under "Filters" in the configuration of the Package Explorer (available by clicking on the three vertical dots in the upper right corner of the Package Explorer).spring-core
should be pre-compiled due to repackaged dependencies.
*RepackJar
tasks in the spring-core.gradle
build file.spring-oxm
should be pre-compiled due to JAXB types generated for tests.
./gradlew :spring-oxm:check
as explained in the Steps above will compile spring-core
and generate JAXB types for spring-oxm
.spring-aspects
does not compile due to references to aspect types unknown to Eclipse.
-XX:MaxPermSize=2048m -Xmx2048m -XX:MaxHeapSize=2048m
In any case, please do not check in your own generated .classpath
file, .project
file, or .settings
folder. You'll notice these files are already intentionally in
.gitignore
. The same policy holds for IDEA metadata.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。