Code example for AbstractAnnotationConfigDispatcherServletInitializer

0
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[] { "/" };