会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
我没有出家
博客园
首页
新随笔
联系
管理
订阅
01 2021 档案
zip 通过 response 下载 (多级文件夹压缩)
摘要:@ResponseBody @RequestMapping("/szctest2") public void zip(HttpServletResponse response) throws Exception { String sourceFileName = "D:\\test"; //要压缩的
阅读全文
posted @
2021-01-28 16:54
我没有出家
阅读(1682)
评论(1)
推荐(1)
zip 通过response 下载,不足 多级目录目录的文件只会压缩到一个文件夹中
摘要:@ResponseBody @RequestMapping("/szctest1") public void zip1(HttpServletResponse response,HttpServletRequest request) throws IOException { String path
阅读全文
posted @
2021-01-28 16:34
我没有出家
阅读(248)
评论(0)
推荐(0)
zip 文件导出 main(多级目录压缩)
摘要:package com.ruoyi.web.controller.test; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.File; import java.io.Fi
阅读全文
posted @
2021-01-28 16:32
我没有出家
阅读(321)
评论(0)
推荐(0)
poi xls文件导出,分多个sheet
摘要:package test; import org.apache.poi.ss.usermodel.Cell; import org.apache.poi.ss.usermodel.Row; import org.apache.poi.ss.usermodel.Sheet; import org.ap
阅读全文
posted @
2021-01-28 10:36
我没有出家
阅读(326)
评论(0)
推荐(0)
向txt中简单写
摘要:File file1 = new File("e://异常.txt"); BufferedWriter out = new BufferedWriter(new FileWriter(file1,true)); out.write(file2.getAbsolutePath()); out.newL
阅读全文
posted @
2021-01-26 17:50
我没有出家
阅读(65)
评论(0)
推荐(0)
遍历获得文件夹下的所有文件
摘要:public void traverseFolder2(String path) { File file = new File(path); if (file.exists()) { File[] files = file.listFiles(); if (null == files || file
阅读全文
posted @
2021-01-26 17:41
我没有出家
阅读(115)
评论(0)
推荐(0)
文件copy
摘要:/** * @param srcpic 复制前文件 * @param despic 复制后文件 */ public static void copyPic(String srcpic, String despic) { File file1 = new File(srcpic); if (file1
阅读全文
posted @
2021-01-21 15:39
我没有出家
阅读(79)
评论(0)
推荐(0)
前端传入数组,后台接受
摘要:
阅读全文
posted @
2021-01-20 15:17
我没有出家
阅读(93)
评论(0)
推荐(0)
formdata 实现文件上传
摘要:页面: <div class="col-sm-12 search-collapse" > <div class="select-list"> <ul> <li> <input name="file" type="file" id="uploadFile" required title="提示:仅允许
阅读全文
posted @
2021-01-18 15:15
我没有出家
阅读(227)
评论(0)
推荐(0)
bootstrap3-typeahead自动补全
摘要:<li> <p>xxx:</p> <input id="caseId" value="" name="caseId" hidden> <input id="caseName" list="caseList" onchange="echoId2()" autocomplete="off"/> <dat
阅读全文
posted @
2021-01-12 13:39
我没有出家
阅读(176)
评论(0)
推荐(0)
shiro获取当前登录的用户名
摘要:SysUser user = (SysUser) SecurityUtils.getSubject().getPrincipal();通过user对象获得当前登录用户名
阅读全文
posted @
2021-01-12 10:53
我没有出家
阅读(1111)
评论(0)
推荐(2)
公告