我遵循本VScode教程中的说明:https://code.visualstudio.com/docs/java/java-webapp。它基于Spring Boot编写的本教程:https://github.com/spring-guides/gs-spring-boot
我正处于构建项目的阶段。我在complete/bin/src中打开Application.java文件,然后按F5进行构建。我每次都会收到这个错误:
"A project with the name spring-boot already exists.
The supplied phased action failed with an exception.
Duplicate root element spring-boot"VScode浏览器的'Maven‘标签确实显示了两个标题为"spring-boot“的项目。我想这是因为在"initial“文件夹中也有一个maven项目。我尝试删除这个“初始”文件夹,但错误仍然存在。
这是我第一次构建web应用程序,也是第一次使用Maven、VSCode和Spring Boot。另外,我的问题可能特定于Spring Boot/Maven/VScode的组合。下面是我的the VScode项目的屏幕截图,显示了这里讨论的所有元素:https://imgur.com/a/qPkCTNz
发布于 2020-07-31 18:55:16
这是我是如何解决同样的问题的。
存储库包含两个项目: initial和complete。要遵循本教程,请执行以下操作:
https://stackoverflow.com/questions/63103107
复制相似问题