Last active
April 21, 2017 13:43
-
-
Save mickknutson/39eb32eb1c7d974d3c354f6dda36ede1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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