Code example for AbstractAnnotationConfigDispatcherServletInitializer

0
package com.mobapp.init; 
 
import javax.servlet.Filter; 
 
import org.springframework.web.filter.HiddenHttpMethodFilter; 
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer; 
 
public class Initializer extends AbstractAnnotationConfigDispatcherServletInitializer { 
 
	@Override 
	protected Class<?>[] getRootConfigClasses() { 
		return null; 
	} 
 
	@Override 
	protected Class<?>[] getServletConfigClasses() { 
		return new Class<?>[] { WebAppConfig.class }; 
	} 
 
	@Override 
	protected String[] getServletMappings() { 
		return new String[] { "/" };