当前位置: 代码迷 >> Java Web开发 >> Caused by:java.lang.IllegalArgumentException:Timestamp formait must be yyyy-
  详细解决方案

Caused by:java.lang.IllegalArgumentException:Timestamp formait must be yyyy-

热度:806   发布时间:2016-04-17 10:28:52.0
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 吗?
------解决方案--------------------
你找着错误的意思改就好了..
  相关解决方案