我下载了 Spring STS 3.6.1 并尝试创建一个 Spring MVC 项目,但缺少模板:
正如你所看到的,它说需要下载!我按了几次“刷新”并重新启动了 STS,但仍然无法让它列出模板。
当我按下配置模板时:
我正在运行 Windows 7 的家用笔记本电脑上工作。我能够访问 Eclipse 市场,并且没有代理。我尝试了另一台也运行 Windows 7 的笔记本电脑,但没有成功。
出了什么问题?
最佳答案
正如用户@AndrewEisenberg建议的here ,查看错误日志会出现如下错误
- 连接至 https://raw.github.com/SpringSource/spring-integration-templates/master/si-sts-templates/builds/descriptor.xml连接到 https://raw.github.com 失败拒绝了。重试尝试 0 已开始
- 连接至 https://raw.github.com/SpringSource/spring-data-gemfire-sts-templates/master/builds/descriptor.xml连接到 https://raw.github.com 失败拒绝了。重试尝试 0 已开始
因此,在调用文件-新建项目-Spring项目
后,通过Windows - Show View - Other - Error Log
仔细查看错误日志中的错误,我明白了这种症状的原因。
由于互联网连接无法到达 https://raw.github.com 造成的
关于java - Spring项目模板不显示模板,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26207198/