object是值,field是反射的字段,将object值类型转换成字段的类型
Object convert = ConvertUtils.convert(object, field.getType());
for (Field field : declaredFields) {
field.setAccessible(true);
Object object = null;
object = resultSet.getObject(field.getName());
System.out.println(object);
Object convert = ConvertUtils.convert(object, field.getType());
field.set(item,convert);
}