mirror of
https://gitee.com/nutz/nutzboot.git
synced 2024-12-05 05:08:18 +08:00
fix: 默认禁用jetty的目录展示
This commit is contained in:
parent
d2130110de
commit
14a4279d3c
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user