Code example for AbstractAnnotationConfigDispatcherServletInitializer

0
 
import javax.servlet.Filter; 
import javax.servlet.ServletContext; 
import javax.servlet.ServletException; 
 
public class OXQuizWebAppInitializer extends AbstractAnnotationConfigDispatcherServletInitializer { 
 
    @Override 
    public void onStartup(ServletContext servletContext) throws ServletException { 
        if("Java".equals(servletContext.getInitParameter("configType"))) { 
            super.onStartup(servletContext); 
        } 
    } 
 
    @Override 
    protected Class<?>[] getRootConfigClasses() { 
        return new Class<?>[] { RepositoryConfig.class }; 
    } 
 
    @Override