Code example for AbstractAnnotationConfigDispatcherServletInitializer

Methods: onStartup

0
        return new String[] { "/" }; 
    } 
 
    @Override 
    public void onStartup(ServletContext servletContext) throws ServletException { 
        super.onStartup(servletContext); 
        this.registerRequestContextListener(servletContext); 
    } 
 
    private void registerRequestContextListener(ServletContext servletContext) { 
        servletContext.addListener(new RequestContextListener()); 
    } 
 
}