- Mastering Spring 5.0
- Ranga Rao Karanam
- 93字
- 2021-07-02 22:12:16
View resolution
Spring MVC provides very flexible view resolution. It provides multiple view options:
- Integration with JSP, Freemarker.
- Multiple view resolution strategies. A few of them are listed as follows:
- XmlViewResolver: View resolution based on an external XML configuration
- ResourceBundleViewResolver: View resolution based on a property file
- UrlBasedViewResolver: Direct mapping of the logical view name to a URL
- ContentNegotiatingViewResolver: Delegates to other view resolvers based on the Accept request header
- Support for chaining of view resolvers with the explicitly defined order of preference.
- Direct generation of XML, JSON, and Atom using Content Negotiation.