Reputation: 315
My goal is to create a first simple Spring MVC application. So I went to youtube and found a tutorial video. In the video it's proposed to perform the steps New -> Other... -> Spring and the following list should appear:
It's proposed to choose "Spring Project". But I have only two items from that list:
Did I installed anything incorrectly? What am I supposed to choose to create a Spring MVC project (and what options)?
Upvotes: 0
Views: 5966
Reputation: 6508
The list of options to create a project that you mentioned from the video is the list of options that you get when using the old Spring Tool Suite 3.
The new Spring Tools 4 for Eclipse have a reduced set of options to create Spring projects and is focused on Spring Boot based projects. In case you start with Spring nowadays, I would strongly recommend to start using Spring Boot and to get started with a Spring Boot project using one of those two options to create a Spring Boot project that comes with the Spring Tools 4.
The old wizards from the Spring Tool Suite 3 (including the Spring MVC project that you could create from it) is not based on Spring Boot and not what I would recommend to start with.
Upvotes: 0
Reputation: 1630
I also had trouble with STS 4 and later on I installed 3.9 and it worked just fine. I recommend you downloading STS if you want to build spring / spring boot projects [ not compulsory though ] .
You can see spring legacy project for spring MVC option and it generates a good project structure which comes with ready to run code and standard project structure. Hope this helps.
Upvotes: 1
Reputation: 1366
You can create a Dynamic web project
and cpnvert that to maven project if you want or can add dependencies in the classpath yourself as jars.
Otherwise You can create a maven project
and add files like web.xml
and spring-mvc-servlet.xml
yourself.
You can use this tutorial for use as this will give you some ideas how to start a spring mvc project in eclipse. https://crunchify.com/simplest-spring-mvc-hello-world-example-tutorial-spring-model-view-controller-tips/
Upvotes: 1