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
- Custom HandlerMapping
- Custom HandlerAdapter
- Custom Argument Resolver
- HandlerMethodArgumentResolver
- Custom Return Value Handler
- HandlerMethodReturnValueHandler
- Custom Formatter
- Custom Converter
- Custom Interceptor
- Custom Exception Resolver
- Custom Message Converter
- Custom Annotation
- Request Lifecycle Customization
- Mini Project: Asynchronous Requests: Callable, DeferredResult and Server-Sent Events