
工具类
李先森1511
这个作者很懒,什么都没留下…
展开
-
通过存储过程mysql批量插入数据
通过数据库存储过程批量插入mysql数据库,id为uuid原创 2022-06-17 18:05:04 · 309 阅读 · 1 评论 -
浏览器下载文件Java工具类
/** * 下载文件 */ public static void downFile(HttpServletRequest request, HttpServletResponse response, InputStream fis, String fileName) throws Exception { OutputStream output = null; try { ...原创 2021-08-27 16:49:32 · 234 阅读 · 0 评论 -
Java实现压缩与解压缩
public static final String ZIP_FILENAME = "D:\\zip\\Result.zip";// 需要解压缩的文件 public static final String ZIP_DIR = "D:\\unzip\\";// 解压目录 public static final int BUFFER = 2 * 1024;// 缓存大小 /** * zip压缩功能. 压缩baseDir(文件夹目录)下所有文件,包括子目录 * @throws Excepti...原创 2021-08-27 16:33:50 · 432 阅读 · 0 评论 -
Java Aspose导入导出word文档
/** * 导出Word数据 * @param query * @return * @throws Exception */ public InputStream exportBwClassWord(BwClass query) throws Exception { // 导出路径 String logPath = "D:" + File.separator + "word" + File.separator + "bwClassExport" + File.separat.原创 2021-08-27 16:17:31 · 552 阅读 · 1 评论 -
Java Aspose导入导出excel
/** * 导出Excel数据 * @param query * @return * @throws Exception */ public InputStream exportBwClass(BwClass query) throws Exception { // 导出路径 String logPath = "D:" + File.separator + "excel" + File.separato...原创 2021-08-27 16:09:27 · 1383 阅读 · 0 评论