fix: 默认禁用jetty的目录展示

This commit is contained in:
Wendal Chen 2018-10-19 23:02:50 +08:00
parent d2130110de
commit 14a4279d3c

View File

@ -229,6 +229,7 @@ public class JettyStarter extends AbstractServletContainerStarter implements Ser
}
wac.setErrorHandler(ep);
wac.setWelcomeFiles(getWelcomeFiles());
wac.setInitParameter("org.eclipse.jetty.servlet.Default.dirAllowed", "false");
// 设置一下额外的东西
server.setAttribute("org.eclipse.jetty.server.Request.maxFormContentSize", getMaxFormContentSize());