摘要:
public class SerializeUtil { /** 序列化对象 * @throws IOException */ public static byte[] serializeObject(Object object) throws IOException{ ByteArrayOutpu 阅读全文
摘要:
使用反射获取Java bean属性 // buyVO 对象 Field[] field = buyVO.getClass().getDeclaredFields(); for(int j=0 ; j<field.length ; j++){ //遍历所有属性 String name = field[j].getName(); ... 阅读全文