简体   繁体   中英

How can I correctly create a new Spring MVC project with Maven structure using STS\Eclipse?

I am using STS (the Elipse version for Spring framework) and I am finding some difficulties to create a new Spring MVC project that use Maven structure.

So I am trying to do something as shown in this tutorial: http://www.codejava.net/frameworks/spring/creating-a-spring-mvc-project-using-maven-and-eclipse-in-one-minute

So I do: File ---> New ---> Maven Project

and when I come to the Select an Archetype wizard I select All Categories into the Catalog dropdown and it show this list of archetype:

在此处输入图片说明

As you can see there is no reference to any kind of Spring project and if I write "Spring" into the Filter I obtain no result.

Why? What am I missing?

Instead of using the archetypes, use Spring Initializr and import the Maven project it creates. If you have a recent version of STS, you can go to File->New->Spring Starter Project and fill out the form from the Eclipse wizard.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM