Code example for AbstractAnnotationConfigDispatcherServletInitializer

0
package de.techdev.trackr.core; 
 
import de.techdev.trackr.core.web.app.AppWebMvcConfiguration; 
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer; 
 
/** 
 * Creates the dispatcher servlet for the app with the correct configuration classes. 
 * @author Moritz Schulze 
 */ 
public class AppWebApplicationInitializer extends AbstractAnnotationConfigDispatcherServletInitializer { 
 
    @Override 
    protected Class<?>[] getRootConfigClasses() { 
        return new Class<?>[] {}; 
    } 
 
    @Override 
    protected Class<?>[] getServletConfigClasses() { 
        return new Class<?>[] {AppWebMvcConfiguration.class}; 
    } 
 
    @Override 
    protected String[] getServletMappings() { 
        return new String[] {"/"}; 
Experience pair programming with AI  Get Codota for Java