Question : Introduction to View Resolver
Answered by : deepika-sahu
The ViewResolver provides a mapping between view names and actual views. The View interface addresses the preparation of the request and hands the request over to one of the view technologies.
Source : | Last Update : Sat, 24 Dec 22
Question : Introduction to View Resolver
Answered by : deepika-sahu
@Bean
public ViewResolver internalResourceViewResolver() { InternalResourceViewResolver bean = new InternalResourceViewResolver(); bean.setViewClass(JstlView.class); bean.setPrefix("/WEB-INF/view/"); bean.setSuffix(".jsp"); return bean;
}
Copy
Source : https://www.baeldung.com/spring-mvc-view-resolver-tutorial | Last Update : Sat, 24 Dec 22
Question : Introduction to View Resolver
Answered by : deepika-sahu
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> <version>${spring-boot-starter-thymeleaf.version}</version>
</dependency>
Copy
Source : https://www.baeldung.com/spring-mvc-view-resolver-tutorial | Last Update : Sat, 24 Dec 22