Search code examples
javaspringeclipsespring-tool-suitespring-tools-4

Creating a Spring MVC Project in Spring Tools 4 (Eclipse)


  1. I installed Eclipse IDE for Enterprise Java Developers.
  2. I went to menu Help -> Eclipse Marketplace... and installed "Spring Tools 4 (aka Spring Tools Suite 4)"

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:

  • Import Spring Getting Started Content
  • Spring Bean Configuration File
  • Spring Bean Definition
  • Spring Project
  • Spring Roo Project
  • Spring Starter Project
  • Spring Web Flow Definition File

It's proposed to choose "Spring Project". But I have only two items from that list:

  • Import Spring Getting Started Content
  • Spring Starter Project

Did I installed anything incorrectly? What am I supposed to choose to create a Spring MVC project (and what options)?


Solution

  • 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.