1、在WEB-INF下新建xml文件——jetty-web.xml
2、添加配置内容
<?xml version="1.0"?> <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd"> <!-- jetty6 --> <Configure id="WebAppContext" class="org.mortbay.jetty.webapp.WebAppContext"> <Set name="maxFormContentSize" type="int">600000</Set> </Configure> <!-- jetty7+ --> <!-- <Configure id="WebAppContext" class="org.eclipse.jetty.webapp.WebAppContext"> <Set name="maxFormContentSize" type="int">600000</Set> </Configure> -->