@@ -0,0 +1,1189 @@
+package net.viralpatel.spring.config;%0A%0Aimport org.springframework.context.annotation.Bean;%0Aimport org.springframework.context.annotation.ComponentScan;%0Aimport org.springframework.context.annotation.Configuration;%0Aimport org.springframework.web.servlet.ViewResolver;%0Aimport org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer;%0Aimport org.springframework.web.servlet.config.annotation.EnableWebMvc;%0Aimport org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;%0Aimport org.springframework.web.servlet.view.InternalResourceViewResolver;%0Aimport org.springframework.web.servlet.view.JstlView;%0A%0A@Configuration%0A@EnableWebMvc%0A@ComponentScan(basePackages = %22net.viralpatel.spring%22)%0Apublic class AppConfig extends WebMvcConfigurerAdapter %7B%0A%09@Bean%0A%09public ViewResolver viewResolver() %7B%0A%09%09InternalResourceViewResolver viewResolver = new InternalResourceViewResolver();%0A%09%09viewResolver.setViewClass(JstlView.class);%0A%09%09viewResolver.setPrefix(%22/WEB-INF/views/%22);%0A%09%09viewResolver.setSuffix(%22.jsp%22);%0A%0A%09%09return viewResolver;%0A%09%7D%0A%0A%09@Override%0A%09public void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer) %7B%0A%09%09configurer.enable();%0A%09%7D%0A%0A%7D%0A

Create AppConfig.java