摘要: public static <T> T reflection(T entity){ Class<? extends Object> entityClass = entity.getClass(); //getDeclaredFields():获得某个类的所有声明的字段,即包括public、priva 阅读全文
posted @ 2022-05-06 18:08 zwbsoft 阅读(195) 评论(0) 推荐(0) 编辑
摘要: /** * 获取文件后缀名 * * @param file * @return */ public static String getFileSuffix(File file) { if (file == null) { return null; } String suffix = null; St 阅读全文
posted @ 2022-05-06 18:07 zwbsoft 阅读(3338) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 解压缩文件(压缩文件中含有子目录) /// </summary> /// <param name="zipfilepath">待解压缩的文件路径</param> /// <param name="unzippath">解压缩到指定目录</param> /// <r 阅读全文
posted @ 2022-05-06 09:42 zwbsoft 阅读(272) 评论(0) 推荐(0) 编辑