简体   繁体   English

解析Excel工作表UI端(反应)与服务器端(java):正确的方法是什么?

[英]Parsing excel sheet UI side (react) vs Server side (java): what is the correct approach?

I need to parse excel sheets uploaded by user. 我需要解析用户上传的Excel工作表。 What would be the correct place to parse it with pros and cons: server side [java] or UI side [react] 用利与弊解析的正确位置是什么:服务器端[java]或UI端[react]

Thank you !!! 谢谢 !!!

You can parse Excel sheets in Java using Apache POI library on server-side https://poi.apache.org/ and XSSF https://poi.apache.org/components/spreadsheet/ . 您可以使用服务器端https://poi.apache.org/和XSSF https://poi.apache.org/components/spreadsheet/上的Apache POI库来解析Java中的Excel工作表。 POI works with .xls files while XSSF only for .xslx. POI适用于.xls文件,而XSSF仅适用于.xslx。

I do not recommend parsing XLS files on client-side because they can be big and you will waste client resources (battery, cpu). 我不建议在客户端解析XLS文件,因为它们可能很大,并且您会浪费客户端资源(电池,CPU)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM