modify: 优化对象转化,异常后返回空集合
This commit is contained in:
parent
2179e5b161
commit
932a81d7bf
|
@ -124,7 +124,8 @@ public class BeanUtils {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e){
|
catch (Exception e){
|
||||||
log.warn("对象转换异常, class: {}, error: {}", clazz.getName(), e.getMessage());
|
log.error("对象转换异常, class: {}, error: {}", clazz.getName(), e);
|
||||||
|
return Collections.emptyList();
|
||||||
}
|
}
|
||||||
return resultList;
|
return resultList;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue