java反射屬性批處理

public <T> T checkNull(T vo) throws Exception { // 獲取實體類的全部屬性,返回Field數組 Field[] field = vo.getClass().getDeclaredFields(); // 獲取屬性的名字 for (int i = 0; i < field.length;
相關文章
相關標籤/搜索