Spring Framework AbstractAnnotationConfigDispatcherServletInitializer - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework AbstractAnnotationConfigDispatcherServletInitializer class.

This code example shows how to use the following methods:
package org.springframework.security.samples.config; 
 
import javax.servlet.Filter; 
 
import org.springframework.security.samples.mvc.config.WebMvcConfiguration; 
import org.springframework.web.filter.HiddenHttpMethodFilter; 
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer; 
 
public class MessageWebApplicationInitializer extends 
        AbstractAnnotationConfigDispatcherServletInitializer { 
 
    @Override 
    protected Class<?>[] getRootConfigClasses() { 
        return new Class[] { RootConfiguration.class }; 
    } 
 
    @Override 
    protected Class<?>[] getServletConfigClasses() { 
        return new Class[] { WebMvcConfiguration.class }; 
    } 

6
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
 
package com.jayway.restassured.examples.springmvc.config; 
 
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer; 
 
public class WebApp extends AbstractAnnotationConfigDispatcherServletInitializer { 
    @Override 
    protected Class<?>[] getRootConfigClasses() { 
        return new Class<?>[0]; 
    } 
 
    @Override 
    protected Class<?>[] getServletConfigClasses() { 
        return new Class<?>[]{MainConfiguration.class}; 
    } 
 
    @Override 
    protected String[] getServletMappings() { 
        return new String[]{"/"}; 
    } 
6
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
package com.test.wildflytransactions; 
 
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer; 
 
public class Initiializer extends AbstractAnnotationConfigDispatcherServletInitializer { 
 
	@Override 
	protected Class<?>[] getRootConfigClasses() { 
		return new Class<?>[] { Config.class }; 
	} 
 
	@Override 
	protected Class<?>[] getServletConfigClasses() { 
		return null; 
	} 
 
	@Override 
	protected String[] getServletMappings() { 
		return new String[] { "/" }; 
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
 * {@link RepositoryRestExporterServlet} to export the repositories defined in {@link ApplicationConfig} via a REST 
 * interface. 
 *  
 * @author Oliver Gierke 
 */ 
public class RestWebApplicationInitializer extends AbstractAnnotationConfigDispatcherServletInitializer { 
 
	/*  
	 * (non-Javadoc) 
	 * @see org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer#getRootConfigClasses() 
	 */ 
	@Override 
	protected Class<?>[] getRootConfigClasses() { 
		return new Class<?>[] { ApplicationConfig.class }; 
	} 
 
	/*  
	 * (non-Javadoc) 
	 * @see org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer#getServletConfigClasses() 
	 */ 
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
package org.springframework.issues.config; 
 
import javax.servlet.Filter; 
 
import org.springframework.web.servlet.resource.ResourceUrlEncodingFilter; 
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer; 
 
public class WebInitializer extends AbstractAnnotationConfigDispatcherServletInitializer { 
 
	@Override 
	protected Class<?>[] getRootConfigClasses() { 
		return null; 
	} 
 
	@Override 
	protected Class<?>[] getServletConfigClasses() { 
		return new Class[] { WebConfig.class }; 
	} 
 
	@Override 

5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
 
/** 
 * @author Siva 
 *  
 */ 
public class SpringWebAppInitializer extends AbstractAnnotationConfigDispatcherServletInitializer 
{ 
 
	 
	@Override 
	protected Class<?>[] getRootConfigClasses() 
	{ 
		return new Class<?>[] { AppConfig.class /*, SecurityConfig.class */}; 
	} 
 
	@Override 
	protected Class<?>[] getServletConfigClasses() 
	{ 
		return new Class<?>[] { WebMvcConfig.class }; 
	} 
4
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
import org.springframework.web.filter.DelegatingFilterProxy; 
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer; 
 
import javax.servlet.*; 
 
public class WebAppInitializer extends 
        AbstractAnnotationConfigDispatcherServletInitializer implements 
        ServletContextListener { 
 
    final Logger logger = LoggerFactory.getLogger(getClass()); 
 
    /** 
     * See {@link AbstractAnnotationConfigDispatcherServletInitializer}. 
     */ 
    @Override 
    protected Class<?>[] getRootConfigClasses() { 
        return null; 
    } 
 
    /** 
4
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
 
/** 
 * @author Siva 
 *  
 */ 
public class SpringWebAppInitializer extends AbstractAnnotationConfigDispatcherServletInitializer 
{ 
 
	@Override 
	protected Class<?>[] getRootConfigClasses() 
	{ 
		return new Class<?>[] { AppConfig.class, SecurityConfiguration.class }; 
	} 
 
	@Override 
	protected Class<?>[] getServletConfigClasses() 
	{ 
		return new Class<?>[] { WebMvcConfig.class }; 
	} 
 
4
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
 
/** 
 * @author Siva 
 *  
 */ 
public class SpringWebAppInitializer extends AbstractAnnotationConfigDispatcherServletInitializer 
{ 
 
	@Override 
	protected Class<?>[] getRootConfigClasses() 
	{ 
		return new Class<?>[] { AppConfig.class}; 
	} 
 
	@Override 
	protected Class<?>[] getServletConfigClasses() 
	{ 
		return new Class<?>[] { WebMvcConfig.class }; 
	} 
 
4
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
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[] { "/" }; 
4
CodeRank
Connect your IDE to all the code out there  Get Codota for Java