beanutils.copypropertie()时出错Unhandled exceptions: java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException

出错信息:

    Unhandled exceptions: java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException

原因是:

    导入的BeanUtils类没有导对

解决方法:  

    应该导入: import org.springframework.beans.BeanUtils;

 

posted @ 2018-09-08 09:35  薪薪点灯  阅读(3377)  评论(0编辑  收藏  举报