Spring: Developing Java Applications for the Enterprise
by Ravi Kant Soni, Amuthan Ganeshan, Rajesh RV
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access