摘要:
/*** 对象转Byte数组** @param obj* @return* @throws Exception*/public static byte[] objectToBytes(Object obj) throws Exception {logger.debug("objectToString called ");ByteArrayOutputStream out = new ByteArrayOutputStream();ObjectOutputStream sOut = new ObjectOutputStream(out);sOut.writeObject(ob 阅读全文