Code example for AbstractAnnotationConfigDispatcherServletInitializer

0
package spittr; 
 
import javax.servlet.ServletRegistration.Dynamic; 
 
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer; 
 
public class WebInitializer extends AbstractAnnotationConfigDispatcherServletInitializer { 
 
	@Override 
	protected Class<?>[] getRootConfigClasses() { 
		return new Class<?>[] { SecurityConfig.class }; 
	} 
 
	@Override 
	protected Class<?>[] getServletConfigClasses() { 
		return new Class<?>[] { WebConfig.class, WebSocketStompConfig.class }; 
	} 
 
	@Override 
	protected String[] getServletMappings() { 
		return new String[] { "/" };