2020年11月25日

文件上传

摘要: 1. 导入jar包,这里还要导入servlet api 2. 编写servlet @WebServlet("/upFile") public class UpLoad extends HttpServlet { // 上传文件存储目录 private static final String UPLO 阅读全文

posted @ 2020-11-25 23:18 Difcipo 阅读(101) 评论(0) 推荐(0) 编辑

文件下载

摘要: public class DownLoadServlet extends HttpServlet { @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletExce 阅读全文

posted @ 2020-11-25 21:40 Difcipo 阅读(67) 评论(0) 推荐(0) 编辑

导航