4

I'm new to Spring MVC and trying to learn from the internet tutorial such as these good ones from journaldev, springsource, and codejava

All of those tell me use STS as the IDE and to go for New Project - Spring Template Project - Spring MVC Project.

Though in my case, using the version 3.6.1.RELEASE of STS, I can NOT find any Spring MVC Project options there.

Do you have the same issue using STS?

p.s.

I found the solution here for previous version of STS, though it not works for version 3.6.1.

Seeing no MVC template snapshot.

enter image description here

Community
  • 1
  • 1
Nam G VU
  • 33,193
  • 69
  • 233
  • 372
  • A similar questions posted a week ago ^^ http://stackoverflow.com/questions/26207198/spring-project-template-not-showing-templates – Nam G VU Oct 13 '14 at 14:05

6 Answers6

13

I've just solved the problem. These are my way:
- Go to New Project -> Spring 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.

supranov
  • 131
  • 3
4

Step:1-Go to File->New

Step:2-Click on Spring Legacy Project

Step:3-see a Templates Box, scroll it down you will find Spring Mvc Project

Kanhaiya Kumar
  • 131
  • 1
  • 6
3

Firstly File -> New Project -> Spring -> Spring Legacy project & finally select what you want. also refer attached images.

enter image description here

enter image description here

Bhaumik Thakkar
  • 580
  • 1
  • 9
  • 28
2

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

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

Community
  • 1
  • 1
Nam G VU
  • 33,193
  • 69
  • 233
  • 372
  • 1
    yes, the project templates are loaded dynamically from GitHub. If STS doesn't have a working network connection to GitHub, those project templates cannot be used directly. Maybe there is a proxy in place that needs to be configured? You can take a look at the network settings via the preferences in Eclipse/STS. – Martin Lippert Oct 14 '14 at 10:33
  • 1
    In addition to that you could also clone the GitHub repo for the Spring MVC Showcase project (https://github.com/spring-projects/spring-mvc-showcase) manually and import that project as a Maven project into STS. – Martin Lippert Oct 14 '14 at 10:34
  • @MartinLippert Thanks for your GitHub cloning advice; though we can hardly create a Spring MVC project from this showcase. – Nam G VU Oct 14 '14 at 10:56
  • @MartinLippert I've talked with the ISP and the issue is on their site. Vietnam incurs the cable fault issue recently and cause many consequences as what they say. – Nam G VU Oct 14 '14 at 10:58
  • 1
    Ok, so it doesn't sound like a defect in STS or anything we can do at the moment, right? Otherwise, let me know. – Martin Lippert Oct 15 '14 at 10:31
1

Try this
New Project -> Spring Project -> Spring MVC Project

Nam G VU
  • 33,193
  • 69
  • 233
  • 372
Naresh Vavilala
  • 598
  • 4
  • 14
0

File->New-->Spring Legacy Project----> scroll down to Spring Mvc Project