摘要: 1 /** 2 * byte数组转hex 3 * @param bytes 4 * @return 5 */ 6 public static String byteToHex(byte[] bytes){ 7 String strHex = ""; 8 StringBuilder sb = new 阅读全文
posted @ 2022-01-17 15:02 奈文摩尔ゞ 阅读(628) 评论(0) 推荐(0) 编辑
摘要: 1 //获取异常原因详情 2 public static String getExceptionInfo(Exception ex){ 3 String sOut = ex.toString()+ "\r\n"; 4 StackTraceElement[] trace = ex.getStackTr 阅读全文
posted @ 2022-01-17 14:42 奈文摩尔ゞ 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 1 import java.io.UnsupportedEncodingException; 2 import java.math.BigInteger; 3 import java.security.MessageDigest; 4 import java.security.NoSuchAlgor 阅读全文
posted @ 2022-01-17 14:38 奈文摩尔ゞ 阅读(2) 评论(0) 推荐(0) 编辑