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 regular web requests with the help of an interceptor. See you in the next chapter.