直接上代码吧: Field field; Field[] fields=clas.getDeclaredFields(); for (int i = 0; i <fields.length ; i++) { fields[i].setAccessible(true); } for (int i = 0; i <fields.length ; i++) { field=clas.getDeclaredField(fields[i].getName()); Column column=field.…