2019年7月3日
摘要: File file = new File(this.getClass().getResource("").getPath());System.out.println(file.getPath());String path=file.getPath();String filename="test1.t 阅读全文
posted @ 2019-07-03 16:20 技术的深奥 阅读(1315) 评论(0) 推荐(0) 编辑
摘要: File file = new File(this.getClass().getResource("").getPath());System.out.println(file.getPath());String path=file.getPath();//path=path.substring(0, 阅读全文
posted @ 2019-07-03 16:19 技术的深奥 阅读(348) 评论(0) 推荐(0) 编辑
摘要: String path = request.getServletContext().getRealPath("/upload/Excel");if (file.exists()){ File[] files=file.listFiles(); if (files.length==0){ System 阅读全文
posted @ 2019-07-03 16:18 技术的深奥 阅读(409) 评论(0) 推荐(0) 编辑
摘要: HSSFWorkbook workbook = new HSSFWorkbook();HSSFSheet sheet = workbook.createSheet("综合信息");HSSFRow row = sheet.createRow(0);HSSFCell c0 = row.createCel 阅读全文
posted @ 2019-07-03 16:15 技术的深奥 阅读(252) 评论(0) 推荐(0) 编辑