admin管理员组文章数量:1635850
Beanutils.copyProperties 异常一: No origin bean specified
Beanutils.copyProperties 异常二: No destination bean specified
Beanutils.copyProperties的源码:
public void copyProperties(Object dest, Object orig) throws IllegalAccessException,
InvocationTargetException, NoSuchMethodException {
if (dest == null) {
throw new IllegalArgumentException("No destination bean specified");
}
if (orig == null) {
throw new IllegalArgumentException("No origin bean specified");
}
......
}
通过源码我们可以了解到public void copyProperties(Object dest, Object orig)方法的两个参数值为NULL就会报出上面两个错误。
本文标签: BeanUtilsJavabeandestination
版权声明:本文标题:Java编程:Beanutils-No destination bean specified问题分析 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/dongtai/1729217055a1190547.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论