- 博客(7)
- 问答 (1)
- 收藏
- 关注
原创 AES 前端加密 JAVA后端解密 Pkcs7
前端加解密帮助类/* * 前端加解密帮助类 */const AesHelper = function (param) { let config = { key:'4c04ad9c8723bf00', iv:'5d2a817a522099fa' }; config = {...config,...param}; AesHelper.prototype.encrypt = (text) => { return Cryp.
2020-09-01 17:20:12
642
1
原创 Android 全局异常捕捉 + 本地异常日志
public class CrashHandler implements Thread.UncaughtExceptionHandler { private static final Format FORMAT = new SimpleDateFormat("yy-MM-dd HH-mm-ss",Locale.getDefault()); ...
2018-09-30 15:19:42
744
原创 Android Zip解压带进度回调
public interface IProgress { void onProgress(int progress); void onError(String msg); void onDone(); } private static long getZipSize(String filePath){ l...
2018-09-30 15:13:26
2186
原创 List<T> 根据属性去重
/** * list去重复(深) 并根据字段进行排序 */ public static <T> ArrayList<T> deduplicate(List<T> list, String filedName) { Set<T> set = new TreeSet<>(new Compa...
2018-09-30 15:03:55
1264
原创 Webclient 文件异步下载以及上传,进度显示
客户端文件下载public class DownloadTools { /// /// 下载实体 /// private WebClient client; /// /// 文件存储路径 /// private string tempFilePath;
2018-01-31 10:52:37
4067
原创 Aspose.Cells导入数据到Excel,支持单元格操作
public class AsposeExcelHelper { /// /// 操作实例 /// private Workbook currentWorkbook; public AsposeExcelHelper() { License license = n
2018-01-31 10:36:21
3928
原创 OleDb导入数据到Excel,跨过Com组件
此种方式导入Excel,不支持对Excel单元格进行操作 #region 变量 //Excel 2007文件 private static string _connString2007 = string.Empty; private static string str2007 = @"Provider=Microsoft.ACE.OLEDB.
2018-01-31 10:23:46
540
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人