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.
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.
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
Firstly File -> New Project -> Spring -> Spring Legacy project & finally select what you want. also refer attached images.
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
Try this
New Project -> Spring Project -> Spring MVC Project
File->New-->Spring Legacy Project----> scroll down to Spring Mvc Project