一、List自定义对象集合转List<Map<String,Object>>对象
public static Map<String,Object> object2Map(Object obj) throws Exception{Map<String,Object> map = new HashMap<String, Object>(16);Field[] fields = obj.getClass().getDeclaredFields();for(Field field:fields){field.setAccessible(true);map.put(field.getName(), field.get(obj));}return map;}public static <T> List<Map<String, Object>> objectList2ListMap(List<T> objectList) throws Exception {ArrayList<Map<String, Object>> resultList = new ArrayList<>();for (T t : objectList) {resultList.add(object2Map(t));}return resultList;}