获取类的字段
public static String[] findAllInClassFieldsName(Class l) {
String[] fieldStr = null;
if (l != null) {
Field[] fields = l.getDeclaredFields();
fieldStr = new String[fields.length];
for (int i = 0; i < fields.length; i++) {
fieldStr[i] = fields[i].getName();
}
}
return fieldStr;
}