Chapter 5. Working with View Resolver

In the previous chapter, we learned how we can use some of the Spring tags that can only be used in JSP and JSTL views. However, Spring has excellent support for other view technologies as well, such as the XML view, JSON view, and so on. Spring MVC maintains a high level of decoupling between the view and controller. The controller knows nothing about view except the view name. It is the responsibility of the view resolver to map the correct view for the given view name.

In this chapter, we will take a deeper look into views and view resolvers. After finishing this chapter, you will have a clear idea about the following topics:

  • Views and resolving views
  • Static views
  • The multipart view resolver
  • Content negotiation ...

Get Spring MVC Beginner’s Guide 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.