Why do we need view resolver in spring mvc and what is an internal view resolver in spring?
Answer / 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 |
Why do we use thymeleaf?
Why @component is used in spring?
What is the use of @autowired annotation in spring?
What is @repository in spring boot? : Spring Boot
What is the difference between model and modelmap in spring?
Why do we need spring batch?
Is spring boot better than spring? : Spring Boot
Why interceptors are used in spring?
What is application properties file in spring boot? : Spring Boot
Why is spring light weight?
What is @springbootapplication in spring boot? : Spring Boot
Tell us about spring security.