1.安装Java8
2.安装Maven
3.安装Gradle
4.下载Java EE版Eclipse
5.从Marketplace中安装Spring STS
6.安装GroovyEclipse(如果导入之后报下面这个错误的话,就装这个)
GroovyDynamicElementReader cannot be resolved to a type
7.从Github克隆Spring仓库
8.修改build.gradle,将
repositories {
maven { url "https://repo.spring.io/libs-release" }
maven { url "https://repo.spring.io/milestone" }
}
替换成
repositories {
maven { url "http://maven.oschina.net/content/groups/public/" }
mavenLocal()
maven { url "http://repo2.maven.org/maven2" }
mavenCentral()
maven { url "https://repo.spring.io/libs-release" }
maven { url "https://repo.spring.io/milestone" }
}
9.运行import-into-eclipse.bat
(或sh),按提示导入Eclipse