{"id":218,"date":"2009-08-13T00:42:15","date_gmt":"2009-08-12T16:42:15","guid":{"rendered":"http:\/\/leegorous.net\/blog\/?p=218"},"modified":"2012-03-03T20:32:19","modified_gmt":"2012-03-03T12:32:19","slug":"enlarge-form-size-in-jetty","status":"publish","type":"post","link":"http:\/\/leegorous.net\/blog\/2009\/08\/13\/enlarge-form-size-in-jetty\/","title":{"rendered":"\u8ba9Jetty\u66f4\u52a0\u5f00\u80c3"},"content":{"rendered":"<p><a href=\"http:\/\/maven.apache.org\/\" target=\"_blank\">Maven<\/a> \u7684 <a href=\"http:\/\/docs.codehaus.org\/display\/JETTY\/Maven+Jetty+Plugin\" target=\"_blank\">jetty-plugin<\/a> \u5f88\u597d\u7528\uff0c\u6211\u662f\u86ee\u559c\u6b22\uff0c\u4e00\u76f4\u5728\u7528\uff0c\u73b0\u5728\u505a\u5f00\u53d1\u505a\u6d4b\u8bd5\u57fa\u672c\u79bb\u4e0d\u5f00\u4e86\uff0c\u4e00\u6761\u547d\u4ee4 mvn jetty:run \u4e0b\u53bb\uff0c\u611f\u89c9\u4e00\u4e2a\u65b0\u4e16\u754c\u88ab\u6253\u5f00\u4e86\u4e00\u6837\u3002<\/p>\n<p>\u4e0d\u8fc7\u5728 window \u4e0a\u7684 eclipse \u91cc\uff0c\u5b83\u5e76\u4e0d\u662f\u5f88\u4e56\uff0c\u4e3b\u8981\u662f\u505c\u4e0d\u4e0b\u6765\uff0c\u4f20\u8bf4\u8fd9\u4e2a\u662f window \u5e73\u53f0\u4e0a\u7684\u4e00\u4e2a\u786c\u4f24\uff0c<a href=\"http:\/\/docs.codehaus.org\/display\/JETTY\/Debugging+with+the+Maven+Jetty+Plugin+inside+Eclipse\" target=\"_blank\">\u5e78\u597d\u89e3\u51b3\u65b9\u6cd5\u8fd8\u662f\u6709\u7684\uff0c\u91c7\u53d6\u8c03\u8bd5<\/a>\uff0cRemote Java Application \u7684\u8c03\u8bd5\u91cc\u6709\u4e2a\u9009\u9879 Allow termination of remote VM\uff0c\u53ef\u4ee5\u5728\u4e00\u5b9a\u7a0b\u5ea6\u4e0a\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u6709\u70b9\u66f2\u7ebf\uff0c\u4e0d\u8fc7\u4e5f\u65b9\u4fbf\uff0c\u968f\u65f6\u53ef\u4ee5\u8c03\u8bd5\u3002\u6211\u4e3b\u8981\u8fd8\u662f\u5728 linux \u73af\u5883\u4e0b\u4f7f\u7528\uff0c\u56e0\u6b64\u8fd9\u4e2a\u95ee\u9898\u57fa\u672c\u5bf9\u6211\u4e0d\u5f71\u54cd\u3002<\/p>\n<p>\u9664\u4e86\u5e73\u53f0\u7684\u95ee\u9898\uff0c\u8fd8\u9047\u5230\u4e86\u4e00\u4e2a Form too large xxxxxx>200000 \u7684\u95ee\u9898\uff0c\u4e00\u5f00\u59cb\u6ca1\u770b\u6e05\u695a\u62a5\u9519\uff0c\u4f7f\u52b2\u5728 struts2 \u7684\u8303\u56f4\u91cc\u9762\u627e\u89e3\u51b3\u65b9\u6cd5\uff0c\u4ee5\u4e3a\u662f\u67d0\u4e2a\u8bbe\u7f6e\u5f71\u54cd\u5b83\u7ea6\u675f\u4e86\u63a5\u53d7\u7684 form \u7684\u5927\u5c0f\u3002\u8fd8\u597d\u5728\u65e0\u654c\u7684 google \u5f15\u5bfc\u4e0b\uff0c\u7ec8\u4e8e\u6e05\u695a\u4e86\u8fd9\u662f jetty \u5728\u62a5\u9519\uff0c\u5b83\u7684\u9ed8\u8ba4\u53c2\u6570\u91cc\u9762\u6709\u4e2a\u9650\u5236\u3002\u95ee\u9898\u6e05\u695a\u4e86\uff0c\u89e3\u51b3\u65b9\u6cd5\u5374\u6709\u70b9\u6251\u6714\u8ff7\u79bb\uff0c\u6700\u521d\u627e\u5230\u4e00\u4e2a maven.jetty.maxformcontentsize\uff0c\u770b\u8d77\u6765\u5f88\u63a5\u8fd1\uff0c\u5b9e\u9645\u4e0a\u53ea\u662f\u7528\u4e8e\u7279\u5b9a\u8f6f\u4ef6\u5185\uff0c\u6269\u5927\u8303\u56f4\u81f3 maxFormContentSize \u518d\u627e\uff0c\u7ec8\u4e8e\u627e\u5230\u4e86\u4e00\u6837\u7684\u60c5\u51b5\u4e86\uff0c\u607c\u706b\u7684\u662f\u4e00\u70b9\u8fdb\u53bb\u7acb\u9a6c\u649e\u5899\uff0c\u8fd9\u65f6\u771f\u7684\u662f\u4e3a\u4e86\u63a5\u8fd1\u771f\u76f8\uff0c\u4e0d\u5f97\u4e0d\u7ee7\u7eed\u6df1\u5165<a href=\"http:\/\/scottryansblog.blogspot.com\/2007_10_01_archive.html\" target=\"_blank\">\u864e\u7a74\uff08\u9700\u7ffb\u5899\uff09<\/a><br \/>\n\u4e0b\u9762\u914d\u7f6e\u7684\u7247\u6bb5\uff0c\u60f3\u8bbe\u591a\u5927\u5c31\u591a\u5927\u3002<\/p>\n<pre name=\"code\" class=\"brush: xml\">\r\n&lt;plugin&gt;\r\n\t&lt;groupId&gt;org.mortbay.jetty&lt;\/groupId&gt;\r\n\t&lt;artifactId&gt;maven-jetty-plugin&lt;\/artifactId&gt;\r\n\t&lt;version&gt;6.1.12&lt;\/version&gt;\r\n\t&lt;configuration&gt;\r\n\t\t&lt;systemProperties&gt;\r\n\t\t\t&lt;systemProperty&gt;\r\n\t\t\t\t&lt;name&gt;org.mortbay.jetty.Request.maxFormContentSize&lt;\/name&gt;\r\n\t\t\t\t&lt;value&gt;100000000&lt;\/value&gt;\r\n\t\t\t&lt;\/systemProperty&gt;\r\n\t\t&lt;\/systemProperties&gt;\r\n\t\t&lt;scanIntervalSeconds&gt;10&lt;\/scanIntervalSeconds&gt;\r\n\t&lt;\/configuration&gt;\r\n&lt;\/plugin&gt;\r\n<\/pre>\n<p>\u4e0d\u8fc7\uff0c\u95ee\u9898\u662f\u4e3a\u4ec0\u4e48 jetty \u4f1a\u6709\u8fd9\u6837\u4e00\u4e2a\u9ed8\u8ba4\u53c2\u6570\u5b58\u5728\u5462\uff1f<br \/>\n\u8bbe\u7f6e\u6210\u975e\u5e38\u5927\u4e4b\u540e\u7684\u786e\u53ef\u4ee5\u89e3\u51b3\u95ee\u9898\uff0c\u4f46\u662f\u4f1a\u4e0d\u4f1a\u5bf9\u6027\u80fd\u4e4b\u7c7b\u7684\u9020\u6210\u5f71\u54cd\u5462\uff1f<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Maven \u7684 jetty-plugin \u5f88\u597d\u7528\uff0c\u6211\u662f\u86ee\u559c\u6b22\uff0c\u4e00\u76f4\u5728\u7528\uff0c\u73b0\u5728\u505a\u5f00\u53d1\u505a\u6d4b\u8bd5\u57fa\u672c\u79bb\u4e0d\u5f00\u4e86\uff0c\u4e00\u6761\u547d\u4ee4 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/leegorous.net\/blog\/2009\/08\/13\/enlarge-form-size-in-jetty\/\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201c\u8ba9Jetty\u66f4\u52a0\u5f00\u80c3\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[22],"tags":[37,31,38],"_links":{"self":[{"href":"http:\/\/leegorous.net\/blog\/wp-json\/wp\/v2\/posts\/218"}],"collection":[{"href":"http:\/\/leegorous.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/leegorous.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/leegorous.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/leegorous.net\/blog\/wp-json\/wp\/v2\/comments?post=218"}],"version-history":[{"count":4,"href":"http:\/\/leegorous.net\/blog\/wp-json\/wp\/v2\/posts\/218\/revisions"}],"predecessor-version":[{"id":1069,"href":"http:\/\/leegorous.net\/blog\/wp-json\/wp\/v2\/posts\/218\/revisions\/1069"}],"wp:attachment":[{"href":"http:\/\/leegorous.net\/blog\/wp-json\/wp\/v2\/media?parent=218"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/leegorous.net\/blog\/wp-json\/wp\/v2\/categories?post=218"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/leegorous.net\/blog\/wp-json\/wp\/v2\/tags?post=218"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}