Code example for AbstractAnnotationConfigDispatcherServletInitializer

Methods: onStartup

0
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 
    protected Class<?>[] getServletConfigClasses() { 
        return new Class<?>[] { WebConfig.class, WebSocketConfig.class }; 
    } 
 
    @Override