随笔分类 -  文档管理

各种格式文档操作、上传、下载、预览
摘要:@RequestMapping(value = "improtHd",method = RequestMethod.POST,produces = {"application/json;charset = utf-8"}) public JSONObject improtHd(@RequestPar 阅读全文
posted @ 2022-09-01 19:29 _Lawrence 阅读(173) 评论(0) 推荐(0) 编辑
摘要:第一种方法: resources: static-locations: file:c:/files/,classpath:/document/,classpath:/static/ mvc: static-path-pattern: /** 第二种方法: pom.xml配置文件路径 <resourc 阅读全文
posted @ 2021-09-23 10:59 _Lawrence 阅读(4237) 评论(0) 推荐(0) 编辑
摘要:首先读取xls和xlsx文档的所有内容。 XSSFWorkbook是读取xlsx文档07 HSSFWorkbook是读取xls文档03 public static void main(String[] args) throws IOException { Resource resource = ne 阅读全文
posted @ 2020-05-13 09:14 _Lawrence 阅读(1285) 评论(0) 推荐(0) 编辑
摘要:不好用,转完问题挺多,还找不到资料头疼。public static void docxToHtml(String fileUrl) throws Exception { String path = fileUrl.substring(0,fileUrl.indexOf(".")); File fil 阅读全文
posted @ 2020-04-15 10:05 _Lawrence 阅读(2027) 评论(0) 推荐(0) 编辑
摘要:注意请求时要设置responseType,不加会中文乱码,被这个坑困扰了大半天。。。 axios post请求: download(index,row){ var ts = this; axios.post(this.paths.baseURL+'file/downloadFile', {path: 阅读全文
posted @ 2020-04-08 16:38 _Lawrence 阅读(2336) 评论(0) 推荐(0) 编辑
摘要:icepdf转pdf文档为图片 首先导入icepdf jar包或maven pdfPath为pdf文件路径、pdfimgpsth为图片保存的路径 public static void icePdfImg(String pdfPath,String pdfimgpsth,HttpServletRequ 阅读全文
posted @ 2020-01-02 17:50 _Lawrence 阅读(889) 评论(0) 推荐(0) 编辑
摘要:多文件保存到本地: @ResponseBody @RequestMapping(value = "/uploadApp",produces = { "application/json;charset=UTF-8" },method= RequestMethod.POST) public String 阅读全文
posted @ 2020-01-02 17:44 _Lawrence 阅读(3615) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示