摘要: 一. 创建 download.jsp ( name 即为要下载的文件名称) </head> <body> <a href="${pageContext.request.contextPath}/download/test1?name=sample.txt">下载</a> </body> </html 阅读全文
posted @ 2020-12-29 18:30 山下明明子 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 一. 导入相关 jar 包(若之前导入过 servlet-api 需排除) <!--文件上传jar包, 前面已导过servlet-api需排除--> <dependency> <groupId>commons-fileupload</groupId> <artifactId>commons-file 阅读全文
posted @ 2020-12-29 16:54 山下明明子 阅读(72) 评论(0) 推荐(0) 编辑