Code example for AbstractAnnotationConfigDispatcherServletInitializer

0
package org.springframework.issues.config; 
 
import javax.servlet.Filter; 
 
import org.springframework.web.servlet.resource.ResourceUrlEncodingFilter; 
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer; 
 
public class WebInitializer extends AbstractAnnotationConfigDispatcherServletInitializer { 
 
	@Override 
	protected Class<?>[] getRootConfigClasses() { 
		return null; 
	} 
 
	@Override 
	protected Class<?>[] getServletConfigClasses() { 
		return new Class[] { WebConfig.class }; 
	} 
 
	@Override 
	protected String[] getServletMappings() { 
		return new String[] { "/" };