尝试通过设置系统属性
jetty.xml
<Call name="setProperty"> <Arg>org.mortbay.jetty.Request.maxFormContentSize</Arg> <Arg>500000</Arg> </Call>
好的,您可以从网络应用中对其进行配置
在您的Web应用程序中添加
WEB-INF / jetty-web.xml文件,并在该文件中配置参数:
<?xml version="1.0"?> <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd"> <Configure id="WebAppContext" > <Set name="maxFormContentSize" type="int">600000</Set> </Configure>
文件
版本7或更高版本
从版本7开始,Jetty的课程已移至其他软件包。您必须替换
org.mortbay...为
org.eclipse...



