【问题标题】:How can I open this Spring project in Eclipse?如何在 Eclipse 中打开这个 Spring 项目?
【发布时间】:2016-12-01 14:01:38
【问题描述】:

愚蠢的问题,似乎无法让它工作。 https://spring.io/guides/gs/rest-service/ 提到了一个 Java 项目 - 在 GIT 上可用 - https://github.com/spring-guides/gs-rest-service.git 和直接在这里 - https://github.com/spring-guides/gs-rest-service/archive/master.zip

当我尝试导入 zip 时,它失败了。我尝试在源代码中选择根文件夹解压缩并导入,但它不起作用。

如何在 Eclipse 中打开这个项目并进行自己的更改?

谢谢。

【问题讨论】:

  • 简单...它是一个maven项目...去导入并尝试导入现有的maven项目...
  • 我正在使用 STS spring Tool Suite,我设法将其作为 Gradle 项目导入。

标签: java eclipse spring rest


【解决方案1】:

确保您选择的是“现有的 Maven 项目”

文件 > 导入 > Maven > 现有的 Maven 项目 指向膨胀的目录并选择 pom.xmls

【讨论】:

  • 完美,谢谢,以前从未使用过 MVN 项目,也没有意识到它有自己的选择。非常感激。如果可能的话,会在 3 分钟内接受这个。再次感谢。
【解决方案2】:

使用 Eclipse Neon,File > Open Projects from Filesystem...,选择 Archive 并提供您的 zip 的位置,然后单击 Finish

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-10-20
    • 2012-07-22
    • 2013-05-20
    • 1970-01-01
    • 1970-01-01
    • 2011-01-10
    • 1970-01-01
    相关资源
    最近更新 更多