Let's jump to creating a very simple Spring MVC web application. For the purpose of learning, we will develop the web version of Taskify, the task management system we started in Chapter 1, Getting Started with Spring Core. The samples in this chapter use Spring Tool Suite (STS) as the IDE, but you can use your favorite IDE, such as IntelliJ and NetBeans. Almost all Java IDEs support Spring development; most of them have plugins to manage Spring projects and artifacts.
To begin with, follow these steps; then, we will explore the code:
Open STS or Eclipse → create a new project → type a project name → select a template, either Spring MVC Project or Simple Spring Web Maven → specify the top-level package name → finish. Your project structure will be generated.
Make sure your
pom.xml
file contains Maven dependencies for thespring-context
,spring-mvc
,servlet-api
,jsp-api
, andjstl
libraries. Note thatjsp-api
andjstl
are required only if you are using JSP as...