Why there is no spring project in new->file->spring but only have some other kinds of spring project such as Legacy,Roo,Starter - spring

After I finished to add the STS to eclipse,when I just want to build a new spring project ,but there is no [spring project] under the [Spring] menu,but only:
import spring Getting started content
Spring Legacy Project
Spring Roo Project
Spring starter Project

The best way to create a new empty Spring project is to use the "Spring Starter Project" wizard. It creates a new Spring Boot project and allows you to select the boot starters that you want to use to populate the classpath of your project with the necessary libraries. Under the hood it uses http://start.spring.io.
If you would like to get started with Spring and would like to follow one of the guides from http://spring.io/guides, the "Import Getting Started Content" wizard is the best choice. It offers you to download those guides directly into your workspace and work with them.
The "Spring Legacy Project" wizard is an outdated one that allows you to create plain Spring projects that use older Spring versions. This will soon be gone in future versions.
The "Spring Roo Project" wizard uses Spring Roo under the hood, a specific technology to work with Spring projects. This is definitely not the right wizard for you if you just want to create a new Spring project (without dealing with Spring Roo in the future).
Hope this helps!

Related

how to write a code for database connection from eclipse using spring. This should be a simple spring maven project without using spring boot

I am new to spring. I am not able to figure out how to write a spring project for creating DB connection using maven , without using spring -boot or hibernate. it is supposed to be a simple spring maven project.
can you help me with few sample codes.
Install the Spring tools suite plugin for eclipse from the following link.
With spring tools suite, access the spring dashboard
Select the Import Reference App, this will provide several example applications from the Spring guides, choose the example and the example will be installed onto your eclipse workspace. These examples are well documented , with clear instructions on how to run the project. Hopefully this should help you get started with learning Spring framework.

What is "Spring legacy project"?

The other day I was playing around with the Spring ToolSuite (STS), and noticed that project types like ("classic") Spring Framework application and Spring MVC are underneath the "Spring legacy project". Does it mean that it is to be phased out, or it is under a deprecation process?
#M.Deinum is absolutely correct (in the comments above). The Spring Legacy Project wizard helps you to create Spring projects that do not use Spring Boot, which is the recommended way to create new Spring projects. Even though using the Spring framework without Spring Boot is absolutely fine and is not deprecated by any means, we are going to remove wizards and additional extras around that in future versions of the Spring tools in order to lead newbies in the direction of Spring boot when using the Spring tools.

Customizing Spring Boot project structure

I am a bit intrigued by Spring boot project structure.
When I create a spring boot project using Eclipse (with Spring tools plugin) and spring initializr (in eclipse Spring->Spring Starter Project), there is no folder src/main/webapp/WEB-INF created. Now is that (src/main/webapp/WEB-INF) to be created manually? If not how to create that directory using spring Spring Starter Project ? If Spring Starter Project is not answer how to create it using some kind of wizard. I am using eclipse with "spring tools" plugin (sts+spring-ide)
I have searched in the web and I am yet to find my answer. Please guide.
In short I am looking for answers to what (and how) are the customization options for project structure in a spring boot project.

how to create spring template project in sts-3.6.3?

please suggest if is there any other solution to do scaffolding of an app in STS.
In many examples/tutorials about creating web services using Spring MVC framework are using Spring MVC project template. I can't find it in my project tempaltes list. Am i missing some plugin installed?
The best way to create a new Rest service Spring app in STS 3.6.3 and beyond is to select the "Import Spring Getting Started Content". This allows you to get the guides from http://spring.io/guides directly into your workspace. If you look for "Rest Service" in the list of available guides, the wizard will download the initial and the completed version of this guide, showing you how to write a Rest service using the latest Spring versions. The completed version of the project could also be used for just creating a new Spring project and continue to do development from there.

Is there a maven 2 archetype for spring 3 MVC applications?

I'm experimenting with the spring 3 MVC framework. Since i use maven 2 to manage my project, i'm searching for a archetype to create a spring 3 MVC application.
You can use STS (spring tool suite) a new spring MVC template project creates a working application using spring 3.
Or you can using Spring Roo to give a working foundation to your project.
I also couldn't find useful archetypes, so I have created my own. You can find it here. If you find anything you'd like to add, please don't hesitate to mail me or send a patch
Spring MVC quickstart archetype is available on GitHub, courtesy of kolorobot. Good instructions are provided on how to install it to your local Maven repo and use it to create a new Spring MVC project. He’s even helpfully included the Tomcat 7 Maven plugin in the archetypical project so that the newly created Spring MVC can be run from the command line without having to manually deploy it to an application server.
Kolorobot’s example application includes the following:
No-xml Spring MVC 3.2 web application for Servlet 3.0 environment
Apache Tiles with configuration in place,
Bootstrap
JPA 2.0 (Hibernate/HSQLDB)
JUnit/Mockito
Spring Security 3.1
AppFuse and AppFuse Light have been upgraded to use Spring 3 so I guess you could use one of the appfuse archetypes.
But what is exactly a Spring MVC application if not a regular webapp with some dependencies on Spring 3 artefacts?
From the springsource forum:
In Spring Source Tool Suite.
Go to New -> Other -> Spring Source Tool Suite -> Spring Template Project -> Spring MVC Project
enter the details and click Finish.
The Codehaus Maven User Archetypes List has several archetypes including two from app-fuse that use Spring MVC.
This archetype creates a Java web application that uses Spring MVC framework, Angular and Event Sourcing.
mvn archetype:generate \
-DarchetypeGroupId=no.bouvet \
-DarchetypeArtifactId=maven-archetype-eventsourcing \
-DarchetypeVersion=1.0.2 \
-DgroupId=com.domain.myapp \
-DartifactId=myapp
You can find the source here - maven-archetype-eventsourcing
And read the blogg - Get your Event Sourced web application development started with one line using Maven!
A friend and I created this spring boiler plate for SPA applications. Could perhaps be useful to you https://github.com/PabloK/SpringRESTboilerplate
What I do is create a new Spring Project and one of the selections available in STS Simple Spring Web Maven; it sets up a Spring 3 Maven webapp, just modify the pom to Spring 4 and do a clean install from the Run Config.
As far as i know it does not exist. But why didn't create your own?

Resources