October 2017
Intermediate to advanced
396 pages
10h 2m
English
Let's register the JSP-related ViewResolver, that is, configure InternalResourceViewResolver in the Spring web application, as follows:
package com.packt.patterninspring.chapter10.bankapp.web.mvc; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.ViewResolver; import org.springframework.web.servlet.config.annotation.EnableWebMvc; import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter; import org.springframework.web.servlet.view.InternalResourceViewResolver; @Configuration @ComponentScan(basePackages = {"com.packt.patterninspring.chapter10.bankapp.web.controller"}) ...Read now
Unlock full access