Spring Tool Suite 缺少 Spring MVC 项目模板
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13533123/
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
Spring Tool Suite missing Spring MVC project template
提问by Mithrand1r
In many examples/tutorials about creating web services using Spring MVC framework are using Spring MVC project template. I can't find it in my project templates list. Am I missing some plugin installed?
在许多关于使用 Spring MVC 框架创建 Web 服务的示例/教程中,都使用 Spring MVC 项目模板。我在我的项目模板列表中找不到它。我是否缺少安装的某些插件?
采纳答案by Alex Barnes
The templates should be available via a link on the dashboard as shown in the screenshot below. There is no plugin required.
模板应可通过仪表板上的链接获得,如下面的屏幕截图所示。不需要插件。


The available templates should be as below:
可用的模板应如下所示:


回答by Accollativo
for version: 3.7.1
版本:3.7.1
1) Go to File->New
1)转到文件->新建
2) Click on Spring Legacy Project
2)点击Spring Legacy Project
3) Scroll down and select Spring MVC
3) 向下滚动并选择 Spring MVC
回答by Pasha
In New Spring Project form click on "Configure Templates..." Then in Preference->Spring->Dashboard check Use Old Dashboad It will be appear
在 New Spring Project 表单中单击“Configure Templates...”然后在 Preference->Spring->Dashboard 中勾选 Use Old Dashboad 它将出现
回答by Piyush Waykole
Try this , it solved my issue.
试试这个,它解决了我的问题。
- Go to New Project -> Spring Legacy Project. For first use, only show "Simple Project" folder.
- Select Configure templates.. (blue link).
- In Template Projects window, delete "spring-data-gemfire" and "spring-integration", and check "Show self-hosted templates ..." (at bottom), and then press Apply -> OK
- Just wait while refreshing process, and "Spring MVC Project" should be showed.
- 转到新项目 -> Spring Legacy 项目。第一次使用时,只显示“Simple Project”文件夹。
- 选择配置模板..(蓝色链接)。
- 在 Template Projects 窗口中,删除“spring-data-gemfire”和“spring-integration”,并勾选“Show self-hosted templates ...”(底部),然后按 Apply -> OK
- 等待刷新过程,应该会显示“Spring MVC Project”。
回答by f-society
Go to File -> New
Select Spring Legacy Project
Look for Spring MVC Projectunder Templates(Last one in the list, Scroll down if needed)
转到文件 - >新建
选择Spring Legacy 项目
在模板下查找Spring MVC 项目(列表中的最后一个,如果需要,向下滚动)
If you don't see the Spring MVC Project, Select Configure templates..link
如果您没有看到Spring MVC Project,请选择Configure templates..链接
Under Preference-> Spring-> Dashboard
Check Use Old Dashboadand press Apply- Ok.
在首选项-> Spring->仪表板下
选中使用旧仪表板并按应用-确定。
Wait while refreshing process....
等待刷新过程....
- You should be able to see Spring MVC Projectnow.
- 您现在应该可以看到Spring MVC 项目了。
回答by user6454295
I had that same problem when i started using sts 3.6.1 version on my laptop. at meanwhile when i choosen spring legacy project folder no spring mvc project folder shown up.but i cofigured my firewall proxy setting and easily got that folder so soon. so before going for mvc first you check urs firewall and proxies.
当我开始在我的笔记本电脑上使用 sts 3.6.1 版本时,我遇到了同样的问题。同时,当我选择 spring 旧项目文件夹时,没有显示 spring mvc 项目文件夹。但我配置了我的防火墙代理设置,很快就轻松获得了该文件夹。因此,在进行 mvc 之前,您首先要检查 urs 防火墙和代理。
steps to configure proxies from native to manual to shown spring mvc project:- window--->preferences--->network connection-->active provider-->choose manual-->ok then go and check spring legacy folder spring mvc will appear
将代理从本机配置为手动到显示 spring mvc 项目的步骤:- 窗口--->首选项---> 网络连接--> 活动提供程序--> 选择手动--> 确定然后去检查 spring 旧文件夹 spring mvc会出现

