Code example for AbstractAnnotationConfigDispatcherServletInitializer

0
package org.springframework.social.showcase.config; 
 
import javax.servlet.Filter; 
 
import org.springframework.web.filter.CharacterEncodingFilter; 
import org.springframework.web.filter.DelegatingFilterProxy; 
import org.springframework.web.filter.HiddenHttpMethodFilter; 
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer; 
 
public class SpringMvcInitializer extends AbstractAnnotationConfigDispatcherServletInitializer { 
 
	@Override 
	protected Class<?>[] getRootConfigClasses() { 
		return new Class<?>[] { MainConfig.class, SecurityConfig.class, SocialConfig.class, WebMvcConfig.class }; 
	} 
 
	@Override 
	protected Class<?>[] getServletConfigClasses() { 
		return new Class<?>[] {}; 
	} 
 
	@Override 
	protected String[] getServletMappings() { 
		return new String[] { "/" }; 
Contextual code suggestions in your IDE  Get Codota for Java