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