This recipe introduces the Spring MVC controller with its simplest implementation.
We will discover later on, and especially in Chapter 3, Working with Java Persistence and Entities, that Spring MVC is a great tool to build a REST API. Here, we will focus on how to create a controller that prints some content in the response.
Starting with this recipe, we will be using GIT to follow each iteration that has been made to develop the cloudstreetmarket
application. After the initial setup, you will appreciate how smoothly you can upgrade.
This recipe comes with two initial sections for installing and configuring GIT.
To download GIT, go to the GIT download page at https://git-scm.com/download. Select the right product corresponding to your environment (Mac OS X, Windows, Linux, or Solaris).
To install GIT for Linux and Solaris, execute the suggested installation commands using the system's native...