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

1

6 Answers 6

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.

2
  • That's awesome. Works like a charm.
    – nanosoft
    Jun 18, 2015 at 8:33
  • At first it didn't work for me, but after a restart it worked.
    – Ankit
    Oct 7, 2015 at 9:16
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

0
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

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

5
  • 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. Oct 14, 2014 at 10:33
  • 1
    In addition to that you could also clone the GitHub repo for the Spring MVC Showcase project (github.com/spring-projects/spring-mvc-showcase) manually and import that project as a Maven project into STS. Oct 14, 2014 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, 2014 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, 2014 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. Oct 15, 2014 at 10:31
1

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

4
  • There is no such menu for 3.1.6 version of STS
    – Nam G VU
    Oct 14, 2014 at 0:08
  • 1
    In your question you mentioned you are using 3.6.1.RELEASE. Are you on 3.6.1.RELEASE or 3.1.6 version. I used 3.6.0 and 3.6.2. I see this option. I don't think this option is just removed in 3.6.1.RELEASE Oct 14, 2014 at 14:13
  • Yeah you are right. We have that menu. Mine is 3.6.1and 3.6.2
    – Nam G VU
    Oct 14, 2014 at 22:24
  • I find the cause - the ISP has something wrong in their routing.
    – Nam G VU
    Oct 14, 2014 at 22:24
0

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

1
  • Try to elaborate your answer.
    – Haytem BrB
    Feb 15, 2016 at 17:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.