To create a new project, we can use a Maven command prompt or an online tool, such as Spring Initializr (http://start.spring.io), to generate the project base. This website comes in handy for creating a simple Spring Boot-based web project to start the ball rolling.
Let's go to http://start.spring.io in our browser and configure our project by filling in the following parameters to create a project base:
Group
:com.packtpub.restapp
Artifact
:ticket-management
Search for dependencies
:Web
(full-stack web development with Tomcat and Spring MVC)
After configuring our project, it will look as shown in the following screenshot:
Now you can generate the project by clicking Generate Project. The project (ZIP file) should be downloaded to your system. Unzip the
.zip
file and you should see the files as shown in the following screenshot:
Copy the entire folder (ticket-management
) and keep it in your desired location.