Class clazz = Class.forName("houji.bean.Task");Field[] fs = clazz.getDeclaredFields();for(Field f:fs){ System.out.println(f.getName());}