CHAPTER 10

image

Showing Your Spring Application on the Web

In this chapter, you are going to show your Spring application called My Documents on the Web. You are going to use Spring annotations so the code is clean and easy to read. Also, you are going to continue to use the embedded database and the RowMapper from Chapter 9 so you can see something real in action.

To put your Spring application on the Web, you need to know about the MVC design pattern. The MVC design pattern is the most used pattern for web applications. Let’s start coding, and as we go along I will talk more about this famous pattern.

Persistence Layer

First, let’s start with the ...

Get Introducing Spring Framework: A Primer 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.