日期:2014-05-19  浏览次数:20824 次

java.lang.IllegalArgumentException: argument type mismatch
两个类:
user{
Date birthday;
}

FormBean{
String birthday;
}

方法中:
FormBean fb = new FormBean();
fb.setBirthday("2012-11-12");

User user = new User();
ConvertUtils.register(new DateLocaleConverter(), Date.class);
BeanUtils.copyProperties(user, ufb);

最后一行执行出错,异常如题目。
------最佳解决方案--------------------
null
------其他解决方案--------------------
BeanUtils.copyProperties(user, ufb);参数类型不匹配,ufb哪里来的