Summary

In this chapter, you learned how InternalResourceViewResolver resolves Views, and you saw how to activate RedirectView from a Controller's method. You learned the important difference between redirect and forward and also found out about Flash attributes. After that, you saw how to host static resources files without going through Controller configuration. You discovered how to attach a static image file to the product details page. You learned how to upload files to the server. You saw how to configure ContentNegotiatingViewResolver to give alternate XML and JSON Views for product domain objects in our application. Finally, you made use of HandlerExceptionResolver to resolve exceptions.

In the next chapter, you will learn how to intercept ...

Get Spring: Developing Java Applications for the Enterprise 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.