|
How to choose correct type of view resolvers |
|
|
Spring have number of view resolvers. Following criteria can be used to decide which to use.
AbstractCachingViewResolver:
If there is a need to catch views in a web application, an abstract view resolver can be used.
XmlViewResolver:
It can accepts a configuration file written in XML. The default configuration file is /WEB-INF/views.xml.
UrlBasedViewResolver:
A kind of ViewResolver used where direct resolution of symbolic view names to URLs is required.
ResourceBundleViewResolver:
If there is need to apply different view resources according to the locale.
Related Tips
|
Page 1 of 0 ( 0 comments )
You can share your information about this topic using the form below!
Please do not post your questions with this form! Thanks.