04
03/19
java版toModel
private static <T, S> T toModel(S source, Class clazz) { long startTime = System.currentTimeMillis(); try { Object obj = clazz.newInstance(); BeanUtils.copyProperties(source, obj); long endTime = System.currentTimeMillis(); System.out.println("程序运行时间:" +Float.toString((endTime - startTime))+"ms"); return (T) obj; } catch (IllegalAccessException e1) { } catch (Insta...