springmvc 请求出现400错误(当传入的参数类型是Date时加上下面代码试试)

@InitBinder
protected void initBinder(HttpServletRequest request,
ServletRequestDataBinder binder) throws Exception {
binder.registerCustomEditor(Date.class, new DatePropertyEditor(yourDateformat));
}
上一篇:javascript运算符的优先级


下一篇:Spring 实例化bean的三种方式: