C H A P T E R  6

Implementing Controllers — Advanced

In this chapter, we are going to take a look at some of the more advanced parts of Spring MVC, and then see how we can tap into the framework itself to extend it to suit our needs.

We’ll begin by examining scoped beans and how we can use them to our advantage. Next, we’ll explore how we can add generic functionality (so-called crosscutting concerns) to our application. For this, we are going to take a look at interceptors, including how to create them and how to wire them into our application.

No matter how robust or well-thought out our application is, there is going to be a time when our application doesn’t behave as expected (e.g., maybe someone will trip over the wire to our database server), ...

Get Pro Spring MVC: With Web Flow now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.