检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[1]攀枝花学院,四川攀枝花617000
出 处:《工业控制计算机》2024年第11期72-74,77,共4页Industrial Control Computer
基 金:2023年校级大学生创新创业训练计划项目(2023cxcy165);四川省创新创业教育示范课程建设项目(Java Web应用开发实训)(sxsxx2002-2021)。
摘 要:随着互联网的迅速发展,文件上传功能在Web应用程序中越来越普遍,且对文件上传(特别是大文件上传)的效率、稳定性等要求也越来越高。介绍了文件上传的基本流程,详细阐述了多种文件上传方法的实现步骤和方法,包括Base64、JspSmartUpload、Cos、CommonsFileUpload、Servlet 3.0以及Spring MVC框架等。然后,通过测试不同方法多次上传文件的CPU平均时间,分析对比这些方法的文件上传效率。同时,为了测试这些方法在上传不同大小文件时的效率,还分别测试了上传5 MB、50 MB、500 MB、1024 MB时的CPU时间。通过验证,所研究的文件上传方法都能够实现文件上传功能,且经过对比分析,Cos在不同场景下的文件上传都表现良好,而Servlet 3.0更加快捷和灵活。With the rapid development of the Internet,the file upload function is more and more common in Web applications,and the requirements for the efficiency and stability of file upload(especially large file upload)are also increasing.This paper introduces the basic process of file upload,and elaborated on the implementation steps and methods of various file upload methods,including Base64,JspSmartUpload,Cos,CommonsFileUpload,Servlet 3.0,and Spring MVC framework.Then,by testing the average CPU time of multiple file uploads using different methods,analyze and compare the file upload efficiency of these methods.At the same time,in order to test the efficiency of these methods when uploading files of different sizes,the CPU time for uploading 5 MB,50 MB,500 MB,and 1024 MB is also tested.Through verification,all the file upload methods studied can achieve file upload function,and after comparative analysis,Cos performs well in file upload in different scenarios,while Servlet 3.0 is faster and more flexible.
关 键 词:文件上传 Servlet 3.0 Spring MVC 性能对比
分 类 号:TP311.52[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:3.149.249.140