Skip to content

Commit

Permalink
more JettyModule clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
qiangdavidliu committed Oct 18, 2016
1 parent fa6c6bc commit ec5fae2
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,11 @@ private Server getServer(OptionalJettyConfig optionalConfig, Set<JettyConnectorP
server.setHandler(webAppContext);
} else {
// We don't have static content so just set up servlets.
ServletContextHandler servletContextHandler = new ServletContextHandler(server, "/", ServletContextHandler.SESSIONS);
ServletContextHandler servletContextHandler =
new ServletContextHandler(server, config.getWebAppContextPath(), ServletContextHandler.SESSIONS);
servletContextHandler.addFilter(GuiceFilter.class, "/*", EnumSet.allOf(DispatcherType.class));
servletContextHandler.addServlet(DefaultServlet.class, "/");
servletContextHandler.setResourceBase("src/main/webapp");
servletContextHandler.setResourceBase(config.getWebAppResourceBase());
}

if (jettyConnectors != null) {
Expand Down

0 comments on commit ec5fae2

Please sign in to comment.