Code example for AbstractAnnotationConfigDispatcherServletInitializer

0
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; 
    } 
 
    /**