日期:2014-05-17  浏览次数:20641 次

BeanUtils.populate错误
final long DAY = 60 * 60 * 24 * 1000;
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm");
Calendar cal = Calendar.getInstance();
String end = format.format(cal.getTime()).substring(0, 10);
long adjustTime = cal.getTimeInMillis() - 10 * DAY;
cal.setTimeInMillis(adjustTime);
String begin = format.format(cal.getTime()).substring(0, 10);
request.setAttribute("begin", begin);
request.setAttribute("end", end);

Caused by:java.lang.IllegalArgumentException:Timestamp formait must be yyyy-mm-dd hh:mm:ss.fffffffff
ERROR - javax.servlet.ServletException:BeanUtils.populate

这个问题怎么解决

------解决方案--------------------
不是已经告诉你了是Timestamp formait must be yyyy-mm-dd hh:mm:ss.fffffffff 吗?
------解决方案--------------------
你找着错误的意思改就好了..