admin管理员组

文章数量:1635850

java异常,共有两种:

一.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