Code example for AbstractAnnotationConfigDispatcherServletInitializer

0
package org.springframework.security.samples.config; 
 
import javax.servlet.Filter; 
 
import org.springframework.security.samples.mvc.config.WebMvcConfiguration; 
import org.springframework.web.filter.HiddenHttpMethodFilter; 
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer; 
 
public class MessageWebApplicationInitializer extends 
        AbstractAnnotationConfigDispatcherServletInitializer { 
 
    @Override 
    protected Class<?>[] getRootConfigClasses() { 
        return new Class[] { RootConfiguration.class }; 
    } 
 
    @Override 
    protected Class<?>[] getServletConfigClasses() { 
        return new Class[] { WebMvcConfiguration.class }; 
    } 
 
    @Override 
    protected String[] getServletMappings() { 
Experience pair programming with AI  Get Codota for Java