java异常,共有两种:admin管理员组文章数量:1635850
一.No destination bean specified;
二.No origin bean specified
Beanutils.copyProperties 源码:
public voidcopyProperties(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就会报出上面两个错误。
本文标签: 异常Javadestinationbean
版权声明:本文标题:java编程: No destination bean specified 异常 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/dongtai/1729215872a1190425.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论