摘要:
1 /** 2 * byte数组转hex 3 * @param bytes 4 * @return 5 */ 6 public static String byteToHex(byte[] bytes){ 7 String strHex = ""; 8 StringBuilder sb = new 阅读全文
摘要:
1 //获取异常原因详情 2 public static String getExceptionInfo(Exception ex){ 3 String sOut = ex.toString()+ "\r\n"; 4 StackTraceElement[] trace = ex.getStackTr 阅读全文
摘要:
1 import java.io.UnsupportedEncodingException; 2 import java.math.BigInteger; 3 import java.security.MessageDigest; 4 import java.security.NoSuchAlgor 阅读全文