Configuration Method
To configure the InternalResourceViewResolver, you typically define it as a bean in the Spring application context. Two configuration methods are
- XML based configuration
- Java Annotation based configuration.
Spring MVC – InternalResourceViewResolver Configuration
Spring MVC is a powerful tool to create web projects provided by the Spring framework. Spring MVC follows the Model-View-Controller Architecture internally to handle and process the data, where the data will be visualized via the View to the user from the Model layer. The interaction will be monitored and handled by the Controller layer of the Architecture.
In Spring MVC, InternalResourceViewResolver is a class that plays a vital role in mapping the logical view name to the actual physical resource view. Using logical view names helps us to achieve code modularity and a flexible way to manage the views.
Prerequisite
- Java – Core and Advanced Java
- Spring & Spring MVC
- Maven & Eclipse or any other IDE’s for Java