{"id":2381,"date":"2020-09-02T16:49:35","date_gmt":"2020-09-02T08:49:35","guid":{"rendered":"http:\/\/ufqi.com\/blog\/?p=2381"},"modified":"2020-09-02T16:52:54","modified_gmt":"2020-09-02T08:52:54","slug":"gwa2-java-file-upload-issues","status":"publish","type":"post","link":"https:\/\/ufqi.com\/blog\/gwa2-java-file-upload-issues\/","title":{"rendered":"GWA2\u5409\u5a03\u5154\ud83d\udc07Java\u4e2d\u7684\u6587\u4ef6\u4e0a\u50b3\u8868\u55ae\u8655\u7406\u82e5\u5e72\u554f\u984c"},"content":{"rendered":"<p>\u5728 GWA2Java \u4e2d\u8655\u7406\u6587\u4ef6\u4e0a\u50b3\u7684HTML\u8868\u55ae\u88ab\u7a31\u7232\u662f\u201c\u5ba2\u8ca8\u6df7\u88dd\u201d\u7684HTTP\u8acb\u6c42\u8655\u7406\u3002<\/p>\n<p>\u6587\u4ef6\u4e0a\u50b3\u8655\u7406\u662fHTTP Web\u958b\u767c\u4e2d\u8f03\u7232\u7279\u6b8a\u7684\u61c9\u7528\uff0c\u5c0d\u958b\u767c\u8005\u6709\u4e00\u5b9a\u7684\u8981\u6c42\u3002\u7121\u8ad6\u662f\u6d41\u884c\u7684PHP\uff0cAspx\u6216\u8005JSP\u90fd\u9700\u8981\u4e00\u5b9a\u7684\u8655\u7406\u6280\u5de7\u3002\u7531\u65bc\u5be6\u5728\u60f3\u4e0d\u8d77\u4f8610\u591a\u5e74\u524d\u662f\u5982\u4f55\u8d64\u624b\u7d14\u4ee3\u78bc\u4f86\u8655\u7406\u5ba2\u8ca8\u6df7\u88dd\u7684HTML\u6587\u4ef6\u4e0a\u50b3\u8868\u55ae\uff0c\u9019\u6b21\u9084\u662f\u8a73\u7d30\u5730\u8a18\u9304\u4e00\u6b21\uff0c\u4ee5\u5099\u518d\u904e\u4e9b\u6642\u65e5\u5fd8\u537b\u4e86\u800c\u5099\u67e5\u3002<\/p>\n<p>\u9084\u6709\u4e00\u5c64\u8003\u616e\u662f\uff0c\u5728\u8655\u7406HTML\u7684\u6587\u4ef6\u4e0a\u50b3\u8868\u55ae\u6642\uff0c\u9700\u8981\u8003\u616e\u8207 GWA2Java\u7684\u878d\u5408\uff0c\u6d89\u53ca\u5230GWA2 \u7684\u6587\u4ef6\u8655\u7406\u7684\u6838\u5fc3\u6a21\u584a\uff0c\u56e0\u6b64\u4e5f\u9700\u8981\u6216\u8005\u4e5f\u662f\u6aa2\u8996GWA2\u67b6\u69cb\u8a2d\u8a08\u7684\u4e00\u6b21\u6975\u597d\u7684\u6a5f\u6703\u3002<br \/>\u5c0d\u6b64\u524d\u7684 GWA2 Java\u9805\u76ee\u7684\u5de1\u8996\uff0c\u6211\u5011\u767c\u73fe\u5df2\u7d93\u6709\u4e00\u4e9b\u9805\u76ee\u6d89\u53ca\u5230\u6587\u4ef6\u4e0a\u50b3\uff0c\u4f46\u57fa\u672c\u4e0a\u591a\u6578\u662f\u4f7f\u7528Ajax\u7570\u6b65\u4e0a\u6b21\u7b49\uff0c\u56de\u907f\u4e86\u201c\u5ba2\u8ca8\u6df7\u88dd\u201d\u6a21\u5f0f\uff0c\u67d0\u500bHTML\u8868\u55ae\u53ea\u8ca0\u8cac\u6587\u4ef6\u4e0a\u50b3\uff0c\u800c\u53e6\u5916\u4e00\u500b\u8868\u55ae\u518d\u6536\u96c6\u5176\u4ed6\u6578\u64da\u3002<\/p>\n<p>\u6240\u4ee5\uff0c\u9019\u6b21\u8981\u5728 GWA2Java \u4e2d\u66f4\u597d\u7684\u6574\u5408\u9032\u6587\u4ef6\u4e0a\u50b3\uff0c\u5e76\u4e14\u662f\u5ba2\u8ca8\u6df7\u88dd\u6a21\u5f0f\u2014\u2014\u8655\u7406\u4e00\u500b\u8868\u55ae\uff0c\u88cf\u9762\u540c\u6642\u5305\u62ec\u5169\u500b\u5b57\u6bb5\uff1a\u5f35\u4e09\u7684\u59d3\u540d\u6587\u5b57\u548c\u5f35\u4e09\u7684\u982d\u50cf\u5716\u7247\u3002<\/p>\n<p><strong>1. \u700f\u89bd\u5668\u5ba2\u6236\u7aef HTML\u8868\u55ae\u4e2denctype<\/strong><\/p>\n<p>\u5982\u679c\u9700\u8981\u5728\u700f\u89bd\u5668\u5ba2\u6236\u7aef\u7684HTML\u8868\u55ae\u4e2d\u9032\u884c\u6587\u4ef6\u4e0a\u50b3\uff0c\u9700\u8981\u660e\u78ba\u986f\u5f0f\u5730\u6307\u5b9a Form\u5143\u7d20\u7684 enctype \u5c6c\u6027\u70ba\u00a0multipart\/form-data \u3002<\/p>\n<p><strong>2. \u670d\u52d9\u5668\u7aef\u63a5\u6536\u8655\u7406\u6587\u4ef6\u4e0a\u50b3\u7684\u7b2c\u4e09\u65b9\u7d44\u4ef6<\/strong><\/p>\n<p>\u57fa\u65bc Apache Tomcat\u7684 Java Web Server\uff0c\u9032\u884c\u670d\u52d9\u5668\u7aef\u7684\u6587\u4ef6\u4e0a\u50b3\u8655\u7406\uff0c\u63a8\u85a6\u4f7f\u7528\u7684\u7d44\u4ef6\u662f Apache commons-fileupload-1.4.jar , \u4e00\u5e76\u7684\u4e5f\u8981\u5f15\u5165 Apache\u00a0commons-io-2.7.jar\u3002<\/p>\n<p><strong>3. HTTP Request.getParameter \u5931\u6548<\/strong><\/p>\n<p>\u5105\u5ba2\u6236\u7aef\u4f7f\u7528\u6587\u4ef6\u4e0a\u50b3\u7684\u8868\u55ae\u905e\u4ea4\u6578\u64da\u6642\uff0cJava Web Server\u4e2d\u5e38\u898f\u7684 Servlet \u5c0d\u8c61 HTTPRequest\u7684\u4e3b\u8981\u65b9\u6cd5 request.getParameter \u5c31\u5931\u6548\u3002\u9019\u4e5f\u662f\u666e\u901a\u7a0b\u5e8f\u7121\u6cd5\u8655\u7406\u5ba2\u8ca8\u6df7\u88dd\u7684\u539f\u56e0\u4e4b\u4e00\u3002<\/p>\n<p>\u53d6\u800c\u4ee3\u4e4b\u7684\uff0c\u5105 enctype=multipart\/form-data \uff0c \u9700\u8981\u901a\u904e\u7b2c\u4e09\u65b9\u7d44\u4ef6\u7372\u53d6\u5230\u76f8\u61c9\u7684\u8868\u55ae\u53c3\u6578\u3002<br \/>\u5728 GWA2 \u4e2d\uff0c\u5176\u4e2d\u7684\u8def\u7531\u6a21\u584a\u56b4\u91cd\u4f9d\u8cf4HTTP Request\u7684\u53c3\u6578\uff0c\u9019\u6642\u5019\uff0c\u9700\u8981\u5c07\u4e3b\u8981\u8def\u7531\u53c3\u6578\u653e\u5165Form\u7684Action\u5c6c\u6027\u4e2d\u3002<br \/>\u53ef\u4ee5\u6539\u9032\u7684\u53e6\u5916\u4e00\u500b\u65b9\u6cd5\u662f\uff0c\u901a\u904e\u5f15\u5165 Apache commons-fileupload \u7684\u76f8\u95dc\u5c0d\u8c61\uff0c\u4fbf\u5229 FormItems \u5c0d\u8c61\uff0c\u5f9e\u800c\u7372\u5f97\u8868\u55ae\u4e2d\u7684\u5e38\u898f\u975e\u6587\u4ef6\u5b57\u6bb5\uff0c\u6587\u672c\u6587\u4ef6\u5b57\u6bb5\u7684\u540d\u7a31\u548c\u503c\u3002<\/p>\n<p>\u904d\u6b77FormItems\u7372\u5f97HTTP Request\u8acb\u6c42\u53c3\u6578\u4e4b\u5f8c\uff0c\u518d\u901a\u904e request.setAttribute\u5beb\u56de\u5230\u7576\u524dRequest\u5c0d\u8c61\uff0c\u5982\u6b64\u5373\u53ef\u5de7\u5999\u5730\u5f4c\u88dc request.getParameter \u5931\u6548\u7684\u554f\u984c\u3002<br \/>\u7531\u65bc\u5728 GWA2Java \u4e2d\uff0c\u7372\u53d6\u5916\u90e8\u53c3\u6578\u901a\u5e38\u7531 Wht.get \u7684\u65b9\u6cd5\u9032\u884c\uff0c\u9019\u500b\u65b9\u6cd5\u9664\u4e86\u8abf\u7528 request.getParameter \u4e4b\u5916\uff0c\u9084\u6703\u9032\u4e00\u6b65\u5730\u7684\u8a2a\u554f request.getAttribute , \u5f9e\u800c\u5be6\u73fe\u4e86\u5c0d request.setAttribute \u7684\u8a2a\u554f\u3002\u518d\u9032\u4e00\u6b65\u5730\u7684 Wht.get \u9084\u6703\u5c0d\u8a2a\u554f\u6578\u64da\u505a\u4e00\u4e9b\u57fa\u672c\u7684\u5b89\u5168\u6aa2\u67e5\u3002<\/p>\n<p>\u6a23\u4f8b\u4ee3\u78bc\uff1a<\/p>\n<blockquote>\n<p>ServletFileUpload sfileupld = new ServletFileUpload((new DiskFileItemFactory()));<br \/> formItems = sfileupld.parseRequest(request); \/\/ can only be parsed once!<br \/> if (formItems != null &amp;&amp; formItems.size() &gt; 0){<br \/> String iname, ivalue; byte[] bytes;<br \/> for (FileItem item : formItems){<br \/> \/\/ processes only fields that are common form fields<br \/> if (item.isFormField()){<br \/> bytes = item.getFieldName().getBytes(&#8220;ISO-8859-1&#8221;); \/\/ why 8859?<br \/> iname = new String(bytes, &#8220;UTF-8&#8221;);<br \/> bytes = item.getString().getBytes(&#8220;ISO-8859-1&#8221;);<br \/> ivalue = new String(bytes, &#8220;UTF-8&#8221;);<br \/> request.setAttribute(iname, ivalue);<br \/> \/\/debug(&#8220;ctrl\/item: iname:&#8221;+iname+&#8221;, ivalue:&#8221;+ivalue);<br \/> }<br \/>}<br \/>}<\/p>\n<\/blockquote>\n<p>&nbsp;<\/p>\n<p><strong>4. HTML\u8868\u55ae\u4e0a\u50b3request \u80fd\u4e14\u50c5\u80fd\u88abparse\u4e00\u6b21<\/strong><\/p>\n<p>\u4e0a\u6587\u4e2d\u63d0\u5230\u7684\u7372\u53d6 FormItems \u9700\u8981\u5f9e HTTP Request\u4e2d\u63d0\u53d6\uff0c<\/p>\n<p>List&lt;FormItem&gt; formItems = uploadInstance.parseRequest(request);<\/p>\n<p>\u9019\u88cf\u7684Request\uff0c\u53ea\u80fd\u88ab parseRequest \u57f7\u884c\u4e00\u6b21\uff0c\u5982\u679c\u5728\u540c\u4e00\u6b21\u8acb\u6c42\u8655\u7406\u7a0b\u5e8f\u4e2d\uff0c\u518d\u6b21\u5c0d\u9019\u500b request \u57f7\u884c parseRequest \u6642\uff0c\u5c31\u6703\u8fd4\u56de\u7570\u5e38\u70ba\u7a7a\u7684\u932f\u8aa4\u3002<br \/>\u56e0\u6b64\uff0c\u5105\u6211\u5011\u9700\u8981\u5728\u7a0b\u5e8f\u9802\u90e8\u901a\u904e\u4fbf\u5229 FormItems \u8a2d\u7f6e request.setAttribute \u6642\uff0c\u9084\u9700\u8981\u4fdd\u7559 FormItems \u4f5c\u7232\u5168\u5c40\u5c0d\u8c61\uff0c\u5728\u5f8c\u9762\u9019\u88cf\u8655\u7406\u5be6\u969b\u4e0a\u50b3\u6587\u4ef6\u6642\u4f7f\u7528\uff0c\u907f\u514d\u518d\u6b21\u8abf\u7528 parseRequest \u7522\u751f\u7232\u7a7a\u7684\u932f\u8aa4\u7570\u5e38\u3002<\/p>\n<p><strong>5. \u63ee\u4e4b\u4e0d\u53bb\u7684\u5b57\u7b26\u8f49\u78bc: \u5f9e ISO-8859-1 \u5230 UTF-8<\/strong><\/p>\n<p>\u5f9e\u5fc3\u88cf\u4e0a\uff0c\u6211\u5011\u662f\u6297\u62d2\u5728\u4ee3\u78bc\u4e2d\u9032\u884c\u5b57\u7b26\u96c6\u8f49\u78bc\u7684\uff0c\u6240\u4ee5\u5f9e\u4e00\u958b\u59cb\uff0c\u6211\u5011\u5728 GWA2Java \u4e2d\u9032\u884c\u4e86\u524d\u5f8c\u7aef\u7d71\u4e00\u5168\u6d41\u7a0b\u4e00\u8cab\u5730\u4f7f\u7528UTF-8\u5b57\u7b26\u96c6\uff0c\u5f9e\u800c\u907f\u514d\u5728\u7cfb\u7d71\u7a0b\u5e8f\u5185\u505a\u7121\u8b02\u7684\u8f49\u78bc\u5de5\u4f5c\u3002\uff08\u53c3\u8003\uff1a-GWA2 Java\u7248\u672c\u7684i18n\/\u4e2d\u6587\u7f16\u7801\/\u4e71\u7801\u95ee\u9898\uff0c<a href=\"https:\/\/ufqi.com\/blog\/gwa2-java-i18n\/\">https:\/\/ufqi.com\/blog\/gwa2-java-i18n\/<\/a> \uff09<\/p>\n<p>\u504f\u504f\u9019\u88cf\u5105\u4f7f\u7528\u5ba2\u8ca8\u6df7\u88dd\u6a21\u5f0f\u9032\u884c\u6587\u4ef6\u4e0a\u50b3\u6642\uff0c\u901a\u904eparseRequest\u51fa\u4f86\u7684 FormItem \u5176\u4e2d\u7684\u975eASCII\u5b57\u7b26\u7684\u7de8\u78bc\u662f ISO-8859-1 \uff0c\u5c0d\u65bc\u50cf GWA2Java \u9019\u6a23\u9ed8\u8a8d\u7684 UTF-8 \u74b0\u5883\uff0c\u5b57\u7b26\u96c6\u8f49\u78bc\u6210\u7232\u8feb\u4e0d\u5f97\u5df2\u7684\u4e8b\u60c5\u3002<\/p>\n<p><strong>6. \u6587\u4ef6\u4e0a\u50b3\u8655\u7406\u65b9\u6cd5\u7684\u6b78\u7f6e<\/strong><\/p>\n<p>\u5728 GWA2 \u7684\u67b6\u69cb\u8a2d\u8a08\u4e2d\uff0c\u6587\u4ef6\u4e0a\u50b3\u529f\u80fd\uff0c\u6b78\u5c6c\u4e8e\u6587\u4ef6\u6a21\u584a\uff0c\u5f15\u5165\u7cfb\u7d71\u7684\u63a5\u53e3\u6587\u4ef6\u662f inc\/FileA , \u91dd\u5c0d\u4e0d\u540c\u7684\u6587\u4ef6\u7cfb\u7d71\uff0c\u6709\u4e0d\u540c\u7684\u6587\u4ef6\u985e\u4f86\u5be6\u73fe inc\/FileDirver , \u5982 \u9ed8\u8a8d\u7684\u6587\u4ef6\u8655\u7406\u662f Linux \u7684 inc\/FileSystem .<\/p>\n<p>\u5728\u6b78\u5c6c\u4e0a\uff0c\u9019\u4e9b inc \u76ee\u9304\u4e0b\u7684\u985e\u53ca\u5176\u65b9\u6cd5\u662f\u201c\u5927\u5bb6\u95a8\u79c0\u201d\uff0c\u4e00\u822c\u4e0d\u53c3\u8207\u5230\u5177\u9ad4\u696d\u52d9\u8655\u7406\u7a0b\u5e8f\u7684\uff0c\u53ea\u80fd\u901a\u904e\u7d71\u4e00\u754c\u9762\u63a5\u53e3 inc\/WebApp \u4f86\u8abf\u7528\u3002\u56e0\u6b64\u7406\u60f3\u7684\u662f\u8abf\u7528\u6587\u4ef6\u4e0a\u50b3\u7684\u908f\u8f2f\u6d41\u7a0b\u5927\u81f4\u70ba\uff1a<\/p>\n<p>ctrl\/a.jsp &#8211;&gt; mod\/ModA &#8211;&gt; inc\/WebApp &#8211;&gt; inc\/FileA &#8211;&gt; inc\/FileSystem .<\/p>\n<p>\u7531\u65bc\u6587\u4ef6\u4e0a\u50b3\uff0c\u5c6c\u65bc\u975e\u5e38\u898f\u7684\u201c\u64cd\u4f5c\u201d\u9700\u6c42\uff0c\u53e6\u5916\u4e00\u7a2e\u975e\u6a19\u6e96\u7684\u6377\u5f91\u662f\uff0c\u5728 mod\/ModA \u4e2d\u76f4\u63a5\u5be6\u4f8b\u5316 inc\/FileSystem , \u5f9e\u800c\u4fbf\u5229\u5730\u89f8\u767c\u5c0d upload \u65b9\u6cd5\u7684\u904b\u7528\u3002\u4f46\u9019\u53ea\u91dd\u5c0d\u5177\u9ad4\u7684\u9805\u76ee\u53ef\u884c\uff0c\u4e14\u4e0d\u9700\u8981\u53ef\u79fb\u690d\u6027\u3002\u6bd4\u5982\u5982\u679c\u5bbf\u4e3b\u7cfb\u7d71\u4e0d\u662f Linux\uff0c \u90a3\u5c31\u4e0d\u80fd\u5be6\u4f8b\u5316 inc\/FileSystem \uff0c \u76f8\u61c9\u5730\u53ef\u80fd\u9700\u8981\u5be6\u4f8b\u5316 inc\/WindowsFileSystem \u4f86\u8655\u7406\u5bbf\u4e3b\u74b0\u5883\u662f Windows \u7684\u6587\u4ef6\u4e0a\u50b3\u3002<\/p>\n<p><strong>7. \u6709\u9032\u6709\u51fa\uff0c\u6587\u4ef6\u522a\u9664\u7684\u64cd\u4f5c<\/strong><\/p>\n<p>\u5728\u6b64\u4e4b\u524d\uff0c\u6838\u5fc3\u63a5\u53e3\u985e inc\/WebApp \u4e2d\u5b9a\u7fa9\u4e86 readObject\/writeObject \u7528\u4f86\u8b80\u5beb\u975e\u6578\u64da\u5eab\u6e90\u7684\u6578\u64da\u3002\u5176\u4e2d inc\/FileA \u4e2d\u76f8\u61c9\u5730\u5b9a\u7fa9\u4e86 read\/write \u65b9\u6cd5\uff0c\u53ea\u662f\u9084\u6c92\u6709\u5c0d\u61c9\u7684\u522a\u9664\u65b9\u6cd5 rm \u7684\u5be6\u73fe\u3002<\/p>\n<p>\u63a5\u8457\u9019\u500b\u6a5f\u6703\uff0c\u6211\u5011\u6b78\u7f6e\u4e26\u5be6\u73fe\u4e86 inc\/FileA, inc\/FileDriver \u548c inc\/FileSystem \u4e09\u500b\u985e\u7684 rm \u65b9\u6cd5\uff0c\u540c\u6642\u6539\u9020 inc\/WebApp.rmBy \u65b9\u6cd5\uff0c\u5c07\u4e0a\u8ff0\u65b9\u6cd5\u9032\u884c\u5c0d\u63a5\u3002<\/p>\n<p>inc\/WebApp.rmBy(&#8220;file:Path_To_File&#8221;) &#8211;&gt; inc\/FileA.rm &#8211;&gt; inc\/FileSystem.rm .<\/p>\n<p>\u00a0GWA2Java, GWA2 \u5c31\u662f\u9019\u6a23\u901a\u904e\u4e00\u500b\u53c8\u4e00\u500b\u9805\u76ee\u5be6\u8e10\uff0c\u4e0d\u65b7\u8c50\u5bcc\u5b8c\u5584\uff0c\u65e5\u76ca\u5065\u58ef\u5f3a\u5927\uff0c\u5105\u878d\u5408\u548c\u6c89\u6fb1\u8db3\u5920\u591a\u7684\u667a\u6167\u548c\u7cbe\u83ef\uff0c\u4e00\u5b9a\u80fd\u53d6\u5f97\u66f4\u5927\u7684\u6210\u5c31\u3002\u6211\u5011\u5728 UfqiWork \u6709\u798f\u5de5\u574a \uff08 https:\/\/ufqi.com\/work\/ \uff09\u4e0a\u9996\u5148\u5be6\u73fe\u4e86 GWA2Java \u8655\u7406\u6587\u4ef6\u4e0a\u50b3\u7684\u5ba2\u8ca8\u6df7\u88dd\u6a21\u5f0f\u3002<\/p>\n<hr \/>\n<p><img loading=\"lazy\" class=\"\" src=\"https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2020\/08\/gwa2-logo-202005.v3.png\" width=\"208\" height=\"208\" \/><\/p>\n<p><a href=\"https:\/\/ufqi.com\/dev\/gwa2\/\">-GWA2 \u5409\u5a03\u5154<\/a>\u00a0\u662f\u201d\u901a\u7528\u7f51\u7edc\u5e94\u7528\u67b6\u6784( General Web Application Architeture,\u00a0https:\/\/ufqi.com\/dev\/gwa2\/ )\u201d\uff0c\u57fa\u4e8e -GWA2 \u53ef\u4ee5\u8f7b\u4fbf\u6784\u5efa\u5404\u79cd\u7f51\u7edc\u5e94\u7528\u7a0b\u5e8f,<br \/>\u5305\u62ec\u590d\u6742\u7684\u5728\u7ebf\u8d2d\u7269\u5546\u57ce\u3001\u5728\u7ebf\u533b\u7597\u3001\u5728\u7ebf\u6559\u80b2\u3001 \u65c5\u6e38\u4ea4\u6613\u5e73\u53f0\u3001\u793e\u7fa4\u6216\u8005\u793e\u4ea4\u7f51\u7ad9\u548c\u65b0\u95fb\u8d44\u8baf\u7f51\u7ad9\u7b49\uff0c<br \/>\u4e5f\u5305\u62ec\u5404\u79cd\u4f01\u4e8b\u4e1a\u5355\u4f4d\u7f51\u4e0a\u95e8\u6237\uff0c\u5728\u7ebf\u4ea4\u4e92\u53ca\u670d\u52a1\u4f5c\u4e1a\u7cfb\u7edf\u7b49.<br \/>\u8fd8\u53ef\u4ee5\u5305\u62ec\u4e3aNativeApp\u505a\u670d\u52a1\u5668\u7aef\u652f\u6301, \u751a\u81f3\u662fWebApp\u7684\u5168\u90e8.<br \/>-GWA2 \u662f\u4e3a\u6570\u4e0d\u591a\u7684\u652f\u6301\u8de8\u5f00\u53d1\u8bed\u8a00\u7684\u5e94\u7528\u6846\u67b6\uff0c\u76ee\u524d\u652f\u6301 -Java, -PHP, -Perl, -Aspx and -Python .<\/p>\n<p>-GWA2 is a \u201cGeneral Web Application Architecture\u201d and based on -GWA2 developers can easily build a variety of network applications,<br \/>including complex online shopping malls, online medical services, online teaching, travel trading platforms, community or social networking sites and news information sites, etc.<br \/>Also the applications include various online portals of enterprises and institutions, online interaction and service operations systems.<br \/>Moreover it contains server-side support for NativeApp, or even all of the WebApp.<br \/>-GWA2 is one of the web frameworks which provide cross-language support for -Java, -PHP, -Perl, -Aspx and -Python at present.<\/p>\n<p><strong>-GWA2 is E.A.S.Y\u00a0<\/strong><br \/><b>Easy Along, Swift Yield<br \/><\/b>\u8f7b\u677e\u542f\u52a8, \u5feb\u901f\u4ea7\u51fa.<\/p>\n<hr \/>\n<p><img loading=\"lazy\" class=\"\" src=\"https:\/\/ufqi.com\/view\/default\/images\/ufqiwork-logo.png\" alt=\"ufqiwork-logo\" width=\"111\" height=\"111\" \/><\/p>\n<p>\u6709\u798f\u5de5\u574aUfqiWork \u662f\u4e00\u4e2a\u5728\u7ebf\u670d\u52a1\u4ea4\u6613\u5e73\u53f0\u3002\uff08 https:\/\/ufqi.com\/work\/ \uff09<br \/>\u6709\u798f\u5de5\u574a\u63d0\u4f9b\u5728\u7ebf\u5206\u7c7b\u670d\u52a1\u4fe1\u606f\uff0c\u81f4\u529b\u4e8e\u5728\u7ebf\u64ae\u5408\u670d\u52a1\u4ea4\u6613\u7684\u4e70\u65b9\u548c\u5356\u65b9\uff0c\u5e76\u4e3a\u4e70\u65b9\u3001\u5356\u65b9\u63d0\u4f9b\u201c\u884c\u51c6\u201d\u670d\u52a1\uff0c\u5c45\u95f4\u62c5\u4fdd\u670d\u52a1\u4ea4\u6613\u3002\u884c\u51c6\u670d\u52a1\u7684\u63d0\u4f9b\u65b9\u4e3a\u5c45\u95f4\u4ea4\u6613\u7684\u7b2c\u4e09\u65b9\u3002\u6709\u798f\u5de5\u574a\u7684\u670d\u52a1\u4ea4\u6613\u5e73\u53f0\u4e3a\u6574\u4e2a\u670d\u52a1\u4ea4\u6613\u6d41\u7a0b\u7684\u7b2c\u56db\u65b9\u3002<\/p>\n<p><b><a class=\"bigfont\" href=\"https:\/\/ufqi.com\/naturedns\/search?q=-R\/32ST\" target=\"_blank\">-R\/32ST<\/a><\/b><\/p>\n<p><a href=\"https:\/\/ufqi.com\/blog\/gwa2-java-file-upload-issues\/\">https:\/\/ufqi.com\/blog\/gwa2-java-file-upload-issues\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728 GWA2Java \u4e2d\u8655\u7406\u6587\u4ef6\u4e0a\u50b3\u7684HTML\u8868\u55ae\u88ab\u7a31\u7232\u662f\u201c\u5ba2\u8ca8\u6df7\u88dd\u201d\u7684HTTP &hellip; <a href=\"https:\/\/ufqi.com\/blog\/gwa2-java-file-upload-issues\/\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[42,301,7,6,2],"tags":[379,86,309,146,380],"_links":{"self":[{"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/posts\/2381"}],"collection":[{"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/comments?post=2381"}],"version-history":[{"count":5,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/posts\/2381\/revisions"}],"predecessor-version":[{"id":2386,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/posts\/2381\/revisions\/2386"}],"wp:attachment":[{"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/media?parent=2381"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/categories?post=2381"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/tags?post=2381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}