摘要: public class SerializeUtil { /** 序列化对象 * @throws IOException */ public static byte[] serializeObject(Object object) throws IOException{ ByteArrayOutpu 阅读全文
posted @ 2017-05-26 17:53 ChrisWang123 阅读(1146) 评论(0) 推荐(0) 编辑
摘要: 使用反射获取Java bean属性 // buyVO 对象 Field[] field = buyVO.getClass().getDeclaredFields(); for(int j=0 ; j<field.length ; j++){ //遍历所有属性 String name = field[j].getName(); ... 阅读全文
posted @ 2017-05-26 14:07 ChrisWang123 阅读(227) 评论(0) 推荐(0) 编辑