首页天道酬勤java删除map的键值对,json对象转map

java删除map的键值对,json对象转map

张世龙 05-06 07:48 31次浏览
/** *对象为map * * @ param obj * @ return * @ throws exception */publicstaticmapstring,objectobjecttomap01(objectobj ) thr field [ ] declared fields=obj.getclass ().getDeclaredFields ); 现场字段: declared fields (for ) field.setaccessible(true ); map.put(field.getname )、field.get )和obj ); }返回图; }
,