Configuring a controller with simple URL mapping
This recipe introduces the Spring MVC controller with its simplest implementation.
Getting ready
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.
How to do it...
This recipe comes with two initial sections for installing and configuring GIT.
Downloading and installing GIT
- To download GIT, go to the GIT ...
Get Spring MVC: Designing Real-World Web Applications now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.