首页 > 其他 > 详细

Jfinal + jetty 8 出现 form too large问题

时间:2018-01-05 18:46:18      阅读:352      评论:0      收藏:0      [点我收藏+]
// JFinal修改Jetty MaxFormContentSize参数
if (JFinal.me().getServletContext().getClass().getName().equals("org.eclipse.jetty.webapp.WebAppContext$Context")) {
try {
ServletContext ctx = JFinal.me().getServletContext();
Method getContextHandler = ctx.getClass().getMethod("getContextHandler", null);
Object handler = getContextHandler.invoke(ctx, null);
Method setMax = handler.getClass().getMethod("setMaxFormContentSize", int.class);
setMax.invoke(handler, 1024 * 1024 * 100);
} catch (Exception e) {
e.printStackTrace();
}
}
放在afterJFinalStart()里

 

Jfinal + jetty 8 出现 form too large问题

原文:https://www.cnblogs.com/5icuke/p/8206238.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!