Code example for AbstractAnnotationConfigDispatcherServletInitializer

0
 
import javax.servlet.ServletRegistration.Dynamic; 
 
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer; 
 
public class DispatcherServletInitializer extends AbstractAnnotationConfigDispatcherServletInitializer { 
 
	@Override 
	protected Class<?>[] getRootConfigClasses() { 
		return null; 
	} 
 
	@Override 
	protected Class<?>[] getServletConfigClasses() { 
		return new Class<?>[] { WebConfig.class }; 
	} 
 
	@Override 
	protected String[] getServletMappings() { 
		return new String[] { "/" }; 
Connect your IDE to all the code out there  Get Codota for Java