Code example for AbstractAnnotationConfigDispatcherServletInitializer

0
import org.springframework.web.context.request.RequestContextListener; 
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer; 
 
import com.nebhale.springone2013.repository.RepositoryConfiguration; 
 
public final class ApplicationInitializer extends AbstractAnnotationConfigDispatcherServletInitializer { 
 
    @Override 
    protected Class<?>[] getRootConfigClasses() { 
        return new Class[] { RepositoryConfiguration.class }; 
    } 
 
    @Override 
    protected Class<?>[] getServletConfigClasses() { 
        return new Class[] { WebConfiguration.class }; 
    } 
 
    @Override 
    protected String[] getServletMappings() { 
        return new String[] { "/" }; 
Connect your IDE to all the code out there  Get Codota for Java