{"id":94141,"date":"2020-04-26T02:10:20","date_gmt":"2020-04-25T18:10:20","guid":{"rendered":"http:\/\/4563.org\/?p=94141"},"modified":"2020-04-26T02:10:20","modified_gmt":"2020-04-25T18:10:20","slug":"%e7%bb%88%e4%ba%8e%e6%9c%89%e4%b8%80%e6%ac%be%e7%bb%84%e4%bb%b6%e5%8f%af%e4%bb%a5%e5%85%a8%e9%9d%a2%e8%b6%85%e8%b6%8a-apache-poi","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=94141","title":{"rendered":"\u7ec8\u4e8e\u6709\u4e00\u6b3e\u7ec4\u4ef6\u53ef\u4ee5\u5168\u9762\u8d85\u8d8a Apache POI"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u7ec8\u4e8e\u6709\u4e00\u6b3e\u7ec4\u4ef6\u53ef\u4ee5\u5168\u9762\u8d85\u8d8a Apache POI               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : GrapeCityChina <\/span>  <span><i><\/i> 20<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u5728 GrapeCity Documents \u51fa\u73b0\u4ee5\u524d\uff0c\u670d\u52a1\u7aef\u6587\u6863\u7ec4\u4ef6\u5411\u6765\u4ee5 Apache POI \u4e3a\u4ee3\u8868\uff0c\u4f5c\u4e3a\u4e00\u6b3e\u7531 Java \u7f16\u5199\u7684\u5f00\u6e90 API \u5e93\uff0cApache POI \u4e3b\u8981\u5e94\u7528\u4e8e\u5bf9\u6587\u6863\u8fdb\u884c\u8bfb\u3001\u5199\uff0c\u4ee5\u53ca\u521b\u5efa\u548c\u7ef4\u62a4\u3002<\/p>\n<p>\u4f46\u6b63\u5982 POI \u6240\u5b9a\u4e49\u7684\u90a3\u6837\uff1a\u4f5c\u4e3a\u201cPoor Obfuscation Implementation\u201d\u9996\u5b57\u6bcd\u7684\u7f29\u5199\uff0cApache POI \u4ec5\u63d0\u4f9b\u201c\u7b80\u5355\u7684\u6a21\u7cca\u5b9e\u73b0\u201d\uff0c\u5176\u5728\u521b\u5efa\u590d\u6742\u903b\u8f91\u7684\u5927\u578b\u6587\u6863\u65f6\uff0c\u7ecf\u5e38\u4f1a\u6349\u895f\u89c1\u8098\u3002<\/p>\n<p>\u5982\u679c\u60f3\u901a\u8fc7\u7b80\u5355\u7684\u4ee3\u7801\u903b\u8f91\uff0c\u5feb\u901f\u521b\u5efa\u3001\u52a0\u8f7d\u3001\u7f16\u8f91\u3001\u5bfc\u5165 \/\u5bfc\u51fa\u5927\u578b\u6587\u6863\uff08 Excel \u3001Word \u3001PDF \uff09\uff0c\u5e76\u5c06\u5176\u90e8\u7f72\u5230\u4e91\u7aef\u65f6\uff0c\u53c8\u8be5\u5982\u4f55\u5b9e\u73b0\uff1f<\/p>\n<p>\u800c\u8fd9\u4e9b\u9700\u6c42\uff0c\u6070\u6070\u662f GrapeCity Documents \u53ef\u4ee5\u6ee1\u8db3\u7684\u3002<\/p>\n<h3>GrapeCity Documents \u662f\u4ec0\u4e48\uff1f<\/h3>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200519_5ec463557d2b3.png\" alt=\"\u7ec8\u4e8e\u6709\u4e00\u6b3e\u7ec4\u4ef6\u53ef\u4ee5\u5168\u9762\u8d85\u8d8a Apache POI\" \/><\/p>\n<p>GrapeCity Documents \u662f\u4e00\u6b3e\u5feb\u901f\u4e14\u9ad8\u6548\u7684\u670d\u52a1\u7aef\u6587\u6863\u7ec4\u4ef6\u5305\uff0c\u53ef\u5728 Windows \u3001Mac \u3001Linux \u4e0a\u5b8c\u7f8e\u8fd0\u884c\uff0c\u540c\u65f6\u9002\u7528\u4e8e .NET \u548c Java \u5e73\u53f0\uff0c\u53ef\u5728\u4e0d\u4f9d\u8d56\u7b2c\u4e09\u65b9\u7ec4\u4ef6\u7684\u60c5\u51b5\u4e0b\uff0c\u63d0\u4f9b\u5feb\u901f\u751f\u6210\u3001\u52a0\u8f7d\u3001\u7f16\u8f91\u548c\u4fdd\u5b58 Excel \u3001PDF \u3001Word \u6587\u6863\u7684\u529f\u80fd\u3002<\/p>\n<p>GrapeCity Documents \u7531\u56db\u79cd\u9488\u5bf9\u4e0d\u540c\u6587\u6863\u548c\u5f00\u53d1\u6846\u67b6\u7684\u7ec4\u4ef6\u6784\u6210\uff1a<\/p>\n<p>\u00b7 \u9002\u7528\u4e8e\u6240\u6709 .NET \u5e73\u53f0\u7684 Excel \u6587\u6863 API \u2014\u2014 GcExcel \uff08.NET \uff09<\/p>\n<p>\u00b7 \u9002\u7528\u4e8e\u6240\u6709 Java \u5e73\u53f0\u7684 Excel \u6587\u6863 API \u2014\u2014 GcExcel \uff08 Java \uff09<\/p>\n<p>\u00b7 \u9002\u7528\u4e8e\u6240\u6709 .NET \u5e73\u53f0\u7684 PDF \u6587\u6863 API \u2014\u2014 GcPDF<\/p>\n<p>\u00b7 \u9002\u7528\u4e8e\u6240\u6709 .NET \u5e73\u53f0\u7684 Word \u6587\u6863 API \u2014\u2014 GcWord<\/p>\n<p>\u4e0b\u9762\uff0c\u6211\u4eec\u5c06\u4ee5\u5176\u4e2d\u7684 GcExcel \u4e3a\u4f8b\uff0c\u8be6\u7ec6\u5bf9\u6bd4\u5b83\u4e0e Apache POI \u7684\u529f\u80fd\u53ca\u6027\u80fd\u4f18\u52a3\u3002<\/p>\n<h3>\u529f\u80fd\u5bf9\u6bd4\uff1aGcExcel VS Apache POI<\/h3>\n<ol>\n<li>\n<p>\u516c\u5f0f\u6570\u91cf<\/p>\n<p>GcExcel \u652f\u6301 452 \u79cd Excel \u516c\u5f0f\u3002<\/p>\n<p>Apache POI \u4e2d\uff0c\u652f\u6301\u7684\u516c\u5f0f\u6570\u91cf\u5f88\u5c11\uff08\u867d\u7136 Apache POI \u7f51\u7ad9\u7f57\u5217\u4e86 280 \u591a\u79cd\u53ef\u8bc4\u4f30\u7684\u516c\u5f0f\uff0c\u4f46\u5728 API \u4e2d\u4ec5\u663e\u793a\u4e3a 157 \u79cd\uff09\u3002<\/p>\n<\/li>\n<li>\n<p>\u662f\u5426\u652f\u6301\u5bfc\u51fa PDF<\/p>\n<p>GcExcel \u4e0d\u4f46\u652f\u6301\u5bfc\u51fa PDF \u683c\u5f0f\uff0c\u8fd8\u53ef\u63a7\u5236\u9875\u9762\u8bbe\u7f6e\u9009\u9879\u3002<\/p>\n<p>Apache POI \u4e0d\u652f\u6301\u5bfc\u51fa PDF \u3002<\/p>\n<\/li>\n<li>\n<p>\u6761\u4ef6\u683c\u5f0f<\/p>\n<p>GcExcel \u652f\u6301\u591a\u79cd\u6761\u4ef6\u683c\u5f0f\uff0c\u5982\u81ea\u5b9a\u4e49\u56fe\u6807\u96c6\u3001\u5224\u65ad\u662f\u5426\u9ad8\u4e8e\u5e73\u5747\u503c\uff08 AboveAverage \uff09\u3001\u53d1\u751f\u65e5\u671f\u5224\u65ad\u3001Top 10 \u548c\u91cd\u590d\u9879\u5224\u65ad\uff0c\u4e14\u8fd9\u4e9b\u6761\u4ef6\u683c\u5f0f\u7684\u8bbe\u7f6e\u89c4\u5219\u4e0e VSTO \u4fdd\u6301\u4e00\u81f4\u3002<\/p>\n<p>\u4f46\u5728 Apache POI \u4e2d\uff0c\u4f7f\u7528\u9ad8\u7ea7 API \u6765\u589e\u52a0\u6761\u4ef6\u683c\u5f0f\u5224\u65ad\u4f1a\u53d7\u9650\u3002\u56e0\u6b64\uff0c\u53ea\u80fd\u4f7f\u7528\u6807\u8bb0\u4e3a\u5185\u90e8\u7528\u9014\u7684\u4f4e\u7ea7\u7c7b\u6765\u5904\u7406 Top10 \u3001\u9ad8\u4e8e\u5e73\u5747\u503c\uff08 AboveAverage \uff09\u7b49\u683c\u5f0f\u5316\u9009\u9879\u3002<\/p>\n<\/li>\n<li>\n<p>\u56fe\u8868\u7c7b\u578b<\/p>\n<p>GcExcel \u7684\u56fe\u8868\u754c\u9762\u4e0e VSTO \u4e00\u81f4\uff0c\u652f\u6301\u7ea6 53 \u79cd\u56fe\u8868\u7c7b\u578b\u3002<\/p>\n<p>Apache POI \u5bf9\u56fe\u8868\u7684\u652f\u6301\u975e\u5e38\u6709\u9650\uff0c\u4ec5\u652f\u6301 Line \u3001Bar \u3001Column \u3001Scatter \u548c Radar \u56fe\u8868\u7c7b\u578b\u3002<\/p>\n<\/li>\n<li>\n<p>\u8ff7\u4f60\u56fe<\/p>\n<p>GcExcel \u5b8c\u5168\u652f\u6301\u6dfb\u52a0\u548c\u914d\u7f6e\u8ff7\u4f60\u56fe\uff08 Sparklines \uff09\u3002<\/p>\n<p>Apache POI \u76ee\u524d\u4e0d\u652f\u6301 Sparklines \u3002<\/p>\n<\/li>\n<li>\n<p>\u526a\u5207\u3001\u590d\u5236\u3001\u7c98\u8d34\u5f62\u72b6<\/p>\n<p>GcExcel \u652f\u6301\u526a\u5207\u3001\u590d\u5236\u3001\u7c98\u8d34\u5f62\u72b6\uff0cApache POI \u4e0d\u652f\u6301\u3002<\/p>\n<\/li>\n<li>\n<p>\u8fc7\u6ee4\u5668\u6570\u636e\u7c7b\u578b<\/p>\n<p>GcExcel \u5e7f\u6cdb\u652f\u6301\u6587\u672c\u3001\u6570\u5b57\u3001\u65e5\u671f\u3001\u989c\u8272\u548c\u56fe\u6807\u7b49\u8fc7\u6ee4\u5668\u3002<\/p>\n<p>Apache POI \u4ec5\u652f\u6301\u57fa\u672c\u7684 AutoFilter\uff0c\u9700\u8981\u4f7f\u7528\u4f4e\u7ea7\u7c7b\u6765\u5b9e\u73b0\u5e94\u7528\u8fc7\u6ee4\u6216\u521b\u5efa\u4efb\u4f55\u5176\u4ed6\u9ad8\u7ea7\u8fc7\u6ee4\u5668\u3002<\/p>\n<\/li>\n<li>\n<p>\u6392\u5e8f<\/p>\n<p>GcExcel \u652f\u6301\u6240\u6709\u7c7b\u578b\u7684\u884c\u6392\u5e8f\u3001\u5217\u6392\u5e8f\u3001\u81ea\u5b9a\u4e49\u6392\u5e8f\u3001\u989c\u8272\u548c\u56fe\u6807\u6392\u5e8f\u3002<\/p>\n<p>Apache POI \u6ca1\u6709\u5185\u7f6e\u7684\u6392\u5e8f\u529f\u80fd\u3002\u4f46\u662f\uff0c\u7528\u6237\u53ef\u4ee5\u4f7f\u7528 shiftRows \uff08\uff09\/ ShiftColumns \uff08\uff09\u5e76\u4ee5\u7f16\u7a0b\u65b9\u5f0f\u5bf9\u6570\u636e\u8fdb\u884c\u6392\u5e8f\u3002<\/p>\n<\/li>\n<li>\n<p>\u5207\u7247\u5668<\/p>\n<p>GcExcel \u652f\u6301\u5e26\u6709\u6570\u636e\u900f\u89c6\u8868\u7684\u5207\u7247\u5668\uff0c\u800c Apache POI \u5219\u4e0d\u652f\u6301\u3002<\/p>\n<\/li>\n<li>\n<p>\u5bfc\u51fa CSV \u683c\u5f0f<\/p>\n<p>GcExcel \u652f\u6301\u5bfc\u51fa\u4e3a CSV \u683c\u5f0f\u3002<\/p>\n<p>Apache POI \u6ca1\u6709\u63d0\u4f9b\u5185\u7f6e\u7684\u5bfc\u51fa CSV \u9009\u9879\u3002\u4f46\u662f\uff0c\u53ef\u4ee5\u4f7f\u7528\u7f16\u7a0b\u7684\u65b9\u5f0f\u521b\u5efa\u76f8\u5e94\u7684 CSV \/ HTML \u6587\u4ef6\u3002<\/p>\n<\/li>\n<li>\n<p>\u6e10\u53d8\u586b\u5145<\/p>\n<p>GcExcel \u652f\u6301\u6e10\u53d8\u586b\u5145\uff0c\u800c Apache POI \u4e0d\u652f\u6301\u3002<\/p>\n<\/li>\n<li>\n<p>\u5355\u5143\u683c\u4e2d\u83b7\u53d6 \/\u8bbe\u7f6e\u503c<\/p>\n<p>\u5728\u5bf9\u5355\u4e2a\u5355\u5143\u683c\u6267\u884c\u83b7\u53d6 \/\u8bbe\u7f6e\u503c\u7684\u60c5\u51b5\u4e0b\uff0cGcExcel \u6bd4 Apache POI \u8868\u73b0\u7684\u66f4\u597d\u3002<\/p>\n<\/li>\n<li>\n<p>\u793a\u4f8b\u4e0e\u5e2e\u52a9\u6587\u6863<\/p>\n<p>\u4f7f\u7528 Apache POI\uff0c\u8bb8\u591a\u529f\u80fd\u9700\u8981\u8bbf\u95ee\u548c\u4e86\u89e3\u5e95\u5c42 API \u624d\u80fd\u5b9e\u73b0\uff0c \u4f46 Apache POI \u63d0\u4f9b\u7684\u793a\u4f8b\u548c\u6587\u6863\u6570\u91cf\u5341\u5206\u6709\u9650\uff0c\u5bf9\u4e8e\u5f00\u53d1\u4eba\u5458\u6765\u8bf4\u5b66\u4e60\u6210\u672c\u8f83\u5927\u3002<\/p>\n<p>\u800c GcExcel \u4f5c\u4e3a\u72ec\u7acb\u4e8e\u5e73\u53f0\u7684 API \u7ec4\u4ef6\uff0c\u5177\u5907\u9ad8\u6027\u80fd\u3001\u4f4e\u5185\u5b58\u6d88\u8017\u7684\u7279\u70b9\uff0c\u5e76\u4e14\u4e0e Excel \u5bf9\u8c61\u6a21\u578b\u4e25\u683c\u517c\u5bb9\u3002GcExcel \u66f4\u52a0\u6613\u4e8e\u4f7f\u7528\u4e14\u529f\u80fd\u5168\u9762\uff0c\u901a\u8fc7\u5176\u63d0\u4f9b\u7684\u5728\u7ebf\u6f14\u793a\u793a\u4f8b\u548c\u5e2e\u52a9\u6587\u6863\uff0c\u5f00\u53d1\u4eba\u5458\u53ef\u4ee5\u5feb\u901f\u4e0a\u624b\uff0c\u8fc5\u901f\u638c\u63e1\u4ea7\u54c1\u4f7f\u7528\u6280\u5de7\u3002<\/p>\n<\/li>\n<\/ol>\n<h3>\u6027\u80fd\u5bf9\u6bd4\uff1aGcExcel VS Apache POI<\/h3>\n<p>\u8ba9\u6211\u4eec\u901a\u8fc7\u4e00\u4e2a GcExcel Java \u7684\u57fa\u51c6\u6d4b\u8bd5\u9879\u76ee\u5bf9\u6bd4\u5176\u4e0e Apache POI \u7684\u6027\u80fd\u4f18\u52a3\uff0c\u8be5\u9879\u76ee\u662f\u4e00\u4e2a java gradle \u9879\u76ee\uff0c\u53ef\u4ee5\u8f93\u51fa GcExcel \u3001POI \u548c Aspose.Cells \u7684\u6027\u80fd\u7ed3\u679c\uff0c\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n<p>\u00b7 \u8bbe\u7f6e\uff1a\u83b7\u53d6\u548c\u4fdd\u5b58 100,000 * 30 \u5355\u5143\u683c\u7684 double \/ string \/ date \u503c\uff0c\u4e0b\u56fe\u663e\u793a\u4e86 double \u503c\u7684\u7ed3\u679c\u3002<\/p>\n<p>\u00b7 <strong>GcExcel \u7528\u65f6\u4e0d\u8d85\u8fc7 0.2S \uff1b Apache POI \u5219\u8fbe\u5230 18.7S \u5de6\u53f3<\/strong><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200519_5ec46362c5de4.png\" alt=\"\u7ec8\u4e8e\u6709\u4e00\u6b3e\u7ec4\u4ef6\u53ef\u4ee5\u5168\u9762\u8d85\u8d8a Apache POI\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200519_5ec4636fc4a6b.png\" alt=\"\u7ec8\u4e8e\u6709\u4e00\u6b3e\u7ec4\u4ef6\u53ef\u4ee5\u5168\u9762\u8d85\u8d8a Apache POI\" \/><\/p>\n<p>\u00b7 \u8bbe\u7f6e\uff1a\u8ba1\u7b97\u548c\u4fdd\u5b58 20,000 * 30 \u4e2a\u5355\u5143\u683c\u7684\u516c\u5f0f\uff0c\u7ed3\u679c\u5982\u4e0b\uff1a<\/p>\n<p>\u00b7 <strong>GcExcel \u7528\u65f6\u4e0d\u8d85\u8fc7 1S \uff1b Apache POI \u5219\u8fbe\u5230 10S \u5de6\u53f3<\/strong><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200519_5ec4637d2722b.png\" alt=\"\u7ec8\u4e8e\u6709\u4e00\u6b3e\u7ec4\u4ef6\u53ef\u4ee5\u5168\u9762\u8d85\u8d8a Apache POI\" \/><\/p>\n<p>\u00b7 \u6253\u5f00\u5e76\u4fdd\u5b58\u4e00\u4e2a 20.5MB \u7684 Excel \u6587\u4ef6\uff0c\u5176\u4e2d\u5305\u542b\u4e86\u8bb8\u591a\u6570\u636e\u3001\u516c\u5f0f\u548c\u5355\u5143\u683c\u683c\u5f0f\uff0c\u7ed3\u679c\u5982\u4e0b\uff1a<\/p>\n<p>\u00b7 <strong>GcExcel \u7528\u65f6\u4e0d\u8d85\u8fc7 4.9S \uff1b Apache POI \u5219\u8fbe\u5230 10S \u5de6\u53f3<\/strong><\/p>\n<p>\u00b7 <strong>GcExcel \u5185\u5b58\u6d88\u8017\u4e3a 72.1MB \uff1b Apache POI \u4e3a 3518.2MB<\/strong><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200519_5ec4638c7b716.png\" alt=\"\u7ec8\u4e8e\u6709\u4e00\u6b3e\u7ec4\u4ef6\u53ef\u4ee5\u5168\u9762\u8d85\u8d8a Apache POI\" \/> <img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200519_5ec463991cc3d.png\" alt=\"\u7ec8\u4e8e\u6709\u4e00\u6b3e\u7ec4\u4ef6\u53ef\u4ee5\u5168\u9762\u8d85\u8d8a Apache POI\" \/><\/p>\n<h3>\u7ed3\u8bba<\/h3>\n<p>\u4ece\u4ee5\u4e0a\u7ed3\u679c\u53ef\u4ee5\u770b\u51fa\uff0cGcExcel \u662f\u76ee\u524d\u4e3a\u6b62\u901f\u5ea6\u6700\u5feb\u3001\u5185\u5b58\u6d88\u8017\u6700\u5c11\u7684\u670d\u52a1\u7aef\u7535\u5b50\u8868\u683c\u7ec4\u4ef6\u3002<\/p>\n<p>\u5c3d\u7ba1 Apache POI \u662f\u514d\u8d39\u7684\uff0c\u4f46\u5b83\u7684\u901f\u5ea6\u548c\u5185\u5b58\u6d88\u8017\u8fdc\u8fdc\u8fbe\u4e0d\u5230\u4f01\u4e1a\u7ea7\u9879\u76ee\u7684\u6807\u51c6\uff0c\u8fd9\u5c31\u662f\u4e3a\u4ec0\u4e48\u6211\u53ea\u9009\u62e9 100,000 * 30 \u4e2a\u5355\u5143\u683c\u7684\u539f\u56e0\uff0c\u56e0\u4e3a\u5373\u4f7f\u5728 1,000,000 * 30 \u4e2a\u5355\u5143\u683c\u7684\u60c5\u51b5\u4e0b\uff0cGcExcel Java \u4ecd\u65e7\u53ef\u4ee5\u5e73\u7a33\u8fd0\u884c\u3002<\/p>\n<p>\u9664\u6b64\u4e4b\u5916\uff0c\u4e3a\u4e86\u4fdd\u8bc1 Apache POI \u6210\u529f\u8fd0\u884c\uff0c\u8fd8\u5fc5\u987b\u5c06 JVM \u6700\u5c0f\u5806\u5927\u5c0f\u914d\u7f6e\u4e3a 4G\uff0c\u5426\u5219\u5b83\u5c06\u629b\u51fa OutOfMemory \u5f02\u5e38\u3002 \u4ee5\u4e0b\u662f build.gradle \u4e2d\u7684 JVM \u914d\u7f6e\uff1a<\/p>\n<pre><code>applicationDefaultJvmArgs = [\"-Xms4096m\", \"-Xmx8192m\"] <\/code><\/pre>\n<p>\u5927\u5bb6\u53ef\u4ee5\u4ece GitHub \u4e0a\u4e0b\u8f7d\u8fd9\u4e2a\u6d4b\u8bd5\u9879\u76ee\uff1a<\/p>\n<p>https:\/\/github.com\/GrapeCity\/GcExcel-Java\/tree\/master\/benchmark, \u5e76\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u884c\u8fd0\u884c\u5b83\uff1a<\/p>\n<ul>\n<li>on mac: .\/gradlew run &#8211;args=&#8221;double&#8221; \/\/\u53c2\u6570\u53ef\u4ee5\u662f double, string, date, formula, bigfile<\/li>\n<li>on windows:\u00a0gradlew run &#8211;args=&#8221;double&#8221; \/\/\u53c2\u6570\u53ef\u4ee5\u662f double, string, date, formula, bigfile<\/li>\n<\/ul>\n<p>\u8bf7\u6ce8\u610f\uff0c\u7b2c\u4e00\u6b21\u8fd0\u884c\u4f1a\u975e\u5e38\u6162\uff0c\u56e0\u4e3a\u5b83\u9700\u8981\u4e0b\u8f7d gradle \u548c\u6240\u6709\u76f8\u5173\u8f6f\u4ef6\u5305\u3002<\/p>\n<p>\u4ee5\u4e0a\uff0c\u5c31\u662f GrapeCity Documents \u4e0e Apache POI \u5728\u529f\u80fd\u548c\u6027\u80fd\u4e0a\u7684\u5bf9\u6bd4\u6d4b\u8bd5\uff0c\u4ece\u6570\u636e\u53ef\u89c1\uff0c\u65e0\u8bba\u662f\u8fd0\u884c\u901f\u5ea6\uff0c\u8fd8\u662f\u5185\u5b58\u6d88\u8017\uff0cGrapeCity Documents \u90fd\u8981\u6bd4 Apache POI \u8868\u73b0\u7684\u66f4\u4e3a\u4f18\u79c0\u3002<\/p>\n<p>\u5982\u679c\u60a8\u4e5f\u6709\u670d\u52a1\u7aef\u5904\u7406 Excel \u3001Word \u3001PDF \u7b49\u6587\u6863\u7684\u9700\u6c42\uff0c\u9700\u8981\u5feb\u901f\u6279\u91cf\u64cd\u4f5c\u5927\u578b\u6587\u6863\uff0c\u53ef\u4ee5\u524d\u5f80 GrapeCity Documents \u5b98\u7f51 \uff0c\u4e0b\u8f7d\u8bd5\u7528\u3002<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>17<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"1192237\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : urzz <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             POI \u6027\u80fd\u548c\u529f\u80fd\u652f\u6301\u786e\u5b9e\u6709\u9650\u3002<br \/>\u4f46\u662f\u6027\u80fd\u5bf9\u6bd4\u4e2d\uff0cpoi \u5bf9\u5e94\u6bd4\u8f83\u5927\u7684 excel \u7684\u8bfb\u5199\u4e0d\u5e94\u8be5\u7528 XSSFWorkbook\uff0c\u800c\u662f\u9009\u62e9\u4f7f\u7528 SXSSF \u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1192238\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : MinQ <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u539f\u6765\u662f\u6536\u8d39\u7684\u554a\uff0c\u90a3\u6211\u8fd8\u662f\u7528 POI \u597d\u4e86\u2026\u2026                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1192239\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : jjianwen68 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u603b\u8981\u8e29\u7740\u522b\u4eba\u4e0a\u4f4d                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1192240\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : chendy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u4e2a\u6536\u8d39\u5e93\u7684\u548c\u4eba\u5bb6\u5f00\u6e90\u514d\u8d39\u7684\u6bd4\u5565\u554a\u2026                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1192241\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : GrapeCityChina <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @chendy \u6bd4\u6027\u80fd\u3001\u6bd4\u901f\u5ea6\u5457\uff0c\u603b\u6709\u4f01\u4e1a\u9700\u8981\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1192242\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lewis89 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @GrapeCityChina #5 \u8bf4\u5b9e\u8bdd \u6211\u5b81\u613f\u505a\u4e2a\u5c0f\u5de5\u5177 \u628a excel \u8f6c\u6210 SQL\uff0c\u4e4b\u524d\u7528\u4e86 Apache POI \u8bfb\u5199 Excel \u76f4\u63a5\u5185\u5b58\u7206\u70b8\uff0c\u540e\u6765\u627e\u4e86\u4e2a GitHub \u4e0a\u4e00\u4e2a\u4ee5\u6d41\u4e3a\u8bfb\u5199\u7684\u5de5\u5177 \u624d\u52c9\u5f3a\u641e\u5b9a\u4e86\u95ee\u9898                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1192243\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yuzo555 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u56fe\u7247\u9632\u76d7\u94fe\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1192244\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : taylorzhi <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u963f\u91cc\u7684 easyexcel \u5f88\u9999\u554a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1192245\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : jokefaker <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6536\u8d39\uff0c\u5e76\u4e14 Java \u53ea\u652f\u6301 excel , \u5168\u9762\u8d85\u8d8a POI \u53ef\u6709\u70b9\u626f&#8230;                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1192246\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : GrapeCityChina <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @yuzo555 \u7b80\u4e66\u53ef\u4ee5\u770b\uff1a https:\/\/www.jianshu.com\/p\/3da6abecee3f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1192247\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : GrapeCityChina <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @lewis89 \u786e\u5b9e POI \u5728\u8bfb\u5199\u5927\u578b Excel \u6587\u6863\u65f6\u4e0d\u662f\u6700\u4f18\u9009\u62e9\uff0c\u4e0d\u8fc7\u5427 Excel \u8f6c\u6210 SqL\uff0c\u6837\u5f0f\u548c\u516c\u5f0f\u5e94\u8be5\u5c31\u4e0d\u5728\u4e86\u5427                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1192248\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : abcbuzhiming <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6536\u8d39\u7684\u73a9\u610f\u5728\u8fd9\u88c5\u903c\uff1f\u6536\u8d39\u7684\u5404\u79cd\u5546\u4e1a Office \u5904\u7406\u7ec4\u4ef6\u6ee1\u5751\u6ee1\u8c37\u7684\uff0c\u7f3a\u4f60\u8fd9\u4e00\u4e2a\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1192249\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : abcbuzhiming <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @GrapeCityChina \u6bd4\u6027\u80fd\u6bd4\u901f\u5ea6\u8bf7\u53bb\u627e\u4e00\u4e2a\u540c\u6837\u662f\u6536\u8d39\u7684\u5546\u4e1a\u5e93\u6765\u6bd4\uff0c\u4e0d\u8981\u548c\u5f00\u6e90\u5e93\u78b0\u74f7\uff0c\u5f88\u6076\u5fc3\uff0c\u5f88\u4e0b\u6d41\uff0c\u5f88\u65e0\u8d56\uff0c\u5f88\u5351\u9119                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1192250\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : GrapeCityChina <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @abcbuzhiming \u4f60\u597d\u597d\u770b\u770b github \u4e0a\u7684\u6d4b\u8bd5\u9879\u76ee\u518d\u6765\u55b7\u7caa\u597d\u5417\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1192251\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : abcbuzhiming <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @GrapeCityChina \u6d4b\u8bd5\u4ec0\u4e48\uff0c\u4f60\u8fd9\u9879\u76ee\u662f\u5f00\u6e90\u7684\uff1f\u662f\u514d\u8d39\u7684\uff1f\u4e0d\u662f\u4f60\u8bf4\u4e2a\u5c41\uff1f\u78b0\u74f7\u5f00\u6e90\u9879\u76ee\u4f60\u8fd8\u6709\u9053\u7406\u4e86\uff1f\u660e\u660e\u5c31\u662f\u4e2a\u505a\u5e7f\u544a\u7684\u3002\u505a\u5e7f\u544a\u4e5f\u5c31\u7f62\u4e86\uff0c\u8e29 POI \u9879\u76ee\u4e0a\u4f4d\uff0c\u8981\u70b9\u8138\u4e0d\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1192252\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 0x666666 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @jokefaker \u679c\u5976?\u5728\u8fd9\u4e5f\u80fd\u78b0\u5230\u4f60                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1192253\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : sonyxperia <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6807\u9898\u91cc\u90fd\u4e0d\u6562\u5199\u81ea\u5df1\u7684\u4ea7\u54c1\u540d\u79f0\uff0c\u53ea\u80fd\u5199\u7ade\u54c1\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u7ec8\u4e8e\u6709\u4e00\u6b3e\u7ec4\u4ef6\u53ef\u4ee5\u5168\u9762\u8d85\u8d8a Apa&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/94141"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=94141"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/94141\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=94141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=94141"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=94141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}