adspace


Why do we need view resolver in spring mvc and what is an internal view resolver in spring?

Answer Posted / Kanchan Mala

The ViewResolver interface in Spring MVC is responsible for resolving a requested view name into a concrete implementation of the javax.servlet.jsp.JspException or org.springframework.web.servlet.View interface. It helps to simplify the management of views and eliminates the need for developers to manually search for views within the application context. An InternalResourceViewResolver is an implementation of ViewResolver that looks for views in the classpath of the application, typically in directories defined by the prefix and suffix properties of the resolver.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you inject java collection in spring?

518


What is lazy class?

490


What is difference between @controller and @restcontroller in spring?

556