Closes gh-1158
This commit is contained in:
nkjackzhang 2016-09-06 17:41:01 +08:00 committed by Stephane Nicoll
parent cc5300c4d5
commit 00bc0b455e
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ Java EE Servlet configuration in a Servlet 3.0+ environment:
@Override
public void onStartup(ServletContext container) {
ServletRegistration.Dynamic registration = container.addServlet("dispatcher", new DispatcherServlet());
ServletRegistration.Dynamic registration = container.addServlet("example", new DispatcherServlet());
registration.setLoadOnStartup(1);
registration.addMapping("/example/*");
}