
前端
牧习
这个作者很懒,什么都没留下…
展开
-
fileinput上传文件
引入css和js<link rel="stylesheet" href="${base}plugin/bootstrap/css/fileinput.min.css"> <script src="${base}plugin/bootstrap/js/fileinput.min.js"></script>html<input type="file" class="projectfile" name="原创 2017-09-06 14:53:02 · 272 阅读 · 0 评论 -
文件下载
Servlet: 1.获取项目的路径String projectPath = request.getSession().getServletContext().getRealPath("/");2.获取tomcat服务器中的文件字节缓冲流BufferedInputStream bis = new BufferedInputStream(new FileInputStream(new File(fi原创 2017-09-06 13:55:55 · 210 阅读 · 0 评论