Spring project template not showing templates

梦想与她 提交于 2020-01-16 00:27:10

问题


I downloaded Spring STS 3.6.1 and I tried to create a spring MVC project, but the templates are missing:

As you can see it says requires downloading! I pressed Refresh several times and restarted STS, but I still can't get it to list the templates.

When I pressed configure templates:

I'm working on my home laptop running Windows 7. I'm able to access Eclipse market place and I'm not behind a proxy. I tried another laptop also running Windows 7, but in vain.

What is wrong?


回答1:


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

  • Connection to https://raw.github.com/SpringSource/spring-integration-templates/master/si-sts-templates/builds/descriptor.xml failed on Connection to https://raw.github.com refused. Retry attempt 0 started
  • Connection to https://raw.github.com/SpringSource/spring-data-gemfire-sts-templates/master/builds/descriptor.xml failed on Connection to https://raw.github.com refused. Retry attempt 0 started

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.

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



来源:https://stackoverflow.com/questions/26207198/spring-project-template-not-showing-templates

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!