Code example for AbstractAnnotationConfigDispatcherServletInitializer

0
import javax.servlet.Filter; 
 
/** 
 * User: HolyEyE 
 */ 
public class TestWebInitializer extends AbstractAnnotationConfigDispatcherServletInitializer { 
 
    @Override 
    protected Class<?>[] getRootConfigClasses() { 
        return new Class<?>[]{TestRootConfig.class}; 
    } 
 
    @Override 
    protected Class<?>[] getServletConfigClasses() { 
        return new Class<?>[]{TestWebConfig.class}; 
    } 
 
    @Override 
    protected String[] getServletMappings() { 
        return new String[]{"/"}; 
Experience pair programming with AI  Get Codota for Java