Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public class WebAppInitializer extends AbstractAnnotationConfigDispatcherServletInitializer {
...
@Override
protected Class<?>[] getServletConfigClasses() {
return new Class[] { WebMvcConfig.class };
}
...
@Override
public void onStartup(final ServletContext servletContext) throws ServletException {
// Registers DispatcherServlet
super.onStartup(servletContext);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment