摘要: 方法二 阅读全文
posted @ 2017-03-14 15:02 望星辰大海 阅读(16697) 评论(0) 推荐(0) 编辑
摘要: Map fieldMap =new HashMap(); BeanInfo beanInfo = Introspector.getBeanInfo(【javabean类名】.class, Object.class); //获取所有的属性描述器 PropertyDescriptor[] pds = beanInfo.getPropertyDescriptors(); for(Propert... 阅读全文
posted @ 2017-03-14 14:58 望星辰大海 阅读(1782) 评论(0) 推荐(0) 编辑