Code example for WebMvcConfigurationSupport

0
import org.springframework.web.servlet.view.InternalResourceViewResolver; 
import org.springframework.web.servlet.view.JstlView; 
 
@Configuration 
@ComponentScan(basePackageClasses = { ResourcesConfig.class }) 
public class ResourcesConfig extends WebMvcConfigurationSupport 
{ 
	@Bean 
	public ViewResolver viewResolver ( ) 
	{ 
		InternalResourceViewResolver viewResolver = new InternalResourceViewResolver(); 
		viewResolver.setViewClass(JstlView.class); 
		viewResolver.setPrefix("/WEB-INF/"); 
		viewResolver.setSuffix(".jspx"); 
		return viewResolver; 
	} 
 
	@Override 
	public HandlerMapping resourceHandlerMapping ( ) 
	{ 
Connect your IDE to all the code out there  Get Codota for Java