fixed header
This commit is contained in:
parent
741d7891f3
commit
2971f868d5
|
@ -37,8 +37,9 @@ public class ExampleServer
|
|||
server.setConnectors(new Connector[] { connector });
|
||||
|
||||
ServletContextHandler context = new ServletContextHandler();
|
||||
context.setContextPath("/hello");
|
||||
context.addServlet(HelloServlet.class, "/");
|
||||
context.setContextPath("/");
|
||||
context.addServlet(HelloServlet.class, "/hello");
|
||||
context.addServlet(AsyncEchoServlet.class, "/echo/*");
|
||||
|
||||
HandlerCollection handlers = new HandlerCollection();
|
||||
handlers.setHandlers(new Handler[] { context, new DefaultHandler() });
|
||||
|
|
Loading…
Reference in New Issue