eclipse SpringSource Tool Suite 缺少 Spring MVC 项目模板

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/15293390/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 20:07:30  来源:igfitidea点击:

SpringSource Tool Suite missing Spring MVC project template

eclipsespringeclipse-plugin

提问by Serkan Ar?ku?u

This is not a duplicate of Spring Tool Suite missing Spring MVC project template

这不是缺少 Spring MVC 项目模板Spring Tool Suite的副本

Using STS 2.9.2 and have the com.springsource.sts.wizard_2.9.2.201205071000-RELEASE in my plugins folder.

使用 STS 2.9.2 并在我的插件文件夹中有 com.springsource.sts.wizard_2.9.2.201205071000-RELEASE。

I want to use Spring MVC project template but cannot find it either on dashboard or under the "New->Other->SpringSource Tool Suite" menu.

我想使用 Spring MVC 项目模板,但在仪表板上或“New->Other->SpringSource Tool Suite”菜单下都找不到它。

I do not want to make a new installation, lots of installed plugins exist. enter image description here

我不想重新安装,存在很多已安装的插件。 在此处输入图片说明

采纳答案by Andrew Eisenberg

For STS 3.0, the way that template projects are accessed has been changed, so it doesn't surprise me that you don't see the template project in the dashboard. However, you should see it in the new dialog. I'm not sure what could be happening. You could have a look at your error log and look for relevant stack traces (and paste them here).

对于 STS 3.0,访问模板项目的方式已更改,因此您在仪表板中看不到模板项目并不奇怪。但是,您应该会在新对话框中看到它。我不确定会发生什么。您可以查看错误日志并查找相关的堆栈跟踪(并将它们粘贴到此处)。

Or you could install STS 3.1 or later. The easiest is probably to just go to the git repo where the template project exists, clone it and import it into your workspace as a maven project.

或者您可以安装 STS 3.1 或更高版本。最简单的方法可能是转到模板项目所在的 git 存储库,将其克隆并将其作为 maven 项目导入到您的工作区中。

Here's the repo:

这是回购:

https://github.com/SpringSource/spring-mvc-showcase

https://github.com/SpringSource/spring-mvc-showcase

The only difference between doing that and using a true template project is that the template project configures a few things automatically for you, like the base package and the project name. All this can be changed after importing, however.

这样做与使用真正的模板项目之间的唯一区别是模板项目会自动为您配置一些内容,例如基础包和项目名称。但是,所有这些都可以在导入后更改。

回答by Kingz

In STS v3.3.0, select File > New > Spring project - when you get there, you will see bunch of options under "Templates" section. One of them is Spring MVC Project. Select that and follow the directions.

在 STS v3.3.0 中,选择 File > New > Spring project - 当你到达那里时,你会在“模板”部分看到一堆选项。其中之一是 Spring MVC 项目。选择它并按照说明进行操作。

回答by Nam G VU

As user @AndrewEisenberg suggested here, viewing the Error Log gives me the errors as below

正如用户@AndrewEisenberg在这里建议的那样,查看错误日志会给我以下错误

So having a close look at the error in Error Log, by Windows - Show View - Other - Error Log, after calling File - New Project - Spring Project, I see the cause for this symptom.

所以仔细查看错误日志中的错误Windows - Show View - Other - Error Log,在调用之后File - New Project - Spring Project,我看到了这个症状的原因。

It causes by the internet connection which cannot reach https://raw.github.com

它是由无法访问https://raw.github.com的互联网连接引起的

回答by Rajat Bhatnagar

i was able to see the option of Spring MVC Project Template here enter image description here

我能够在这里看到 Spring MVC 项目模板的选项 在此处输入图片说明