09 2019 档案
摘要:@Transactional public String saveImportPermitZt(String path,SysUser user,String hvalue){ int index = 0; String datamsg=""; SysFile sysfilee = null; String patch = path; //截取file/之后的内容 indexs+5 indexs+
阅读全文
摘要:String sll = path; //获取字符后四位 if(sll.substring(sll.length()-4, sll.length()).equals(".xls")) { // 获取Excel文件对象 HSSFWorkbook workBook ...
阅读全文
摘要:String sg ="12312/412" //截取/之后的内容,包含/可以把indexs+1改为+0 int indexs = sg.indexOf("/"); String newStr = sg.substring(indexs + 1);
阅读全文
摘要:String sts = newStr; sts = newStr.replaceAll("//","\\\\\\\\");; //两个斜杠在字符串中为1个\斜杠
阅读全文
摘要:public static boolean deleteFile(String path) { boolean flag = false; //path数据库保存路径 File file = new File(相对路径+path); // 路径为文件且不为空则进行删除 if (file.isFile()) { file.delete(); flag = true; } return flag; }
阅读全文
摘要:public void fileDownload() throws UnsupportedEncodingException { String fileidd= this.getParameter("获取ID"); SysFile sysFile = sysFileManager.getById(根据id(fileidd)查询); File file = new File(AppUtil.getA
阅读全文