Skip to main content

Custom ViewResolver

Learn Custom ViewResolver (Advanced Spring MVC, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Fresher Notes ViewResolver maps a logical view name returned by a controller (such as report ) to a real View object that renders the response. One method : View resolveViewName(String viewName, Locale locale) ; return null to let the next resolver try. Custom resolver lets you render formats such as CSV, PDF or a database-stored template that the default resolvers cannot.

More lessons in Advanced Spring MVC