July 2018
Intermediate to advanced
268 pages
7h 36m
English
In this example, we are going to use Spring MVC as our web application framework. Let's create the web application configuration file:
@Configuration@EnableWebMvc@ComponentScan(basePackages= {"com.packtpub.book.ch02.springsecurity.controller"})public class WebApplicationConfig implements WebMvcConfigurer { @Override public void configureViewResolvers(ViewResolverRegistry registry) { registry.jsp().prefix("/WEB-INF/views/").suffix(".jsp"); }}
The @EnableWebMvc annotation makes sure that your application is based on Spring MVC.
Read now
Unlock full access