解决方案 »

  1.   

    你需要SimpleDateFormat来将字符串转换为Date
      

  2.   

    使用spring3.2或以上版本,比较方便
      

  3.   

    bean里面改成string 之后再转过来
      

  4.   

    spring有initbinder,每次请求action的时候会自动转化一下,或者手动转也可以
     @InitBinder  
        public void initBinder(WebDataBinder binder) {  
            SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");  
            dateFormat.setLenient(false);  
            binder.registerCustomEditor(Date.class, new CustomDateEditor(dateFormat, false));  
       }
      

  5.   

    建议全部改为String  类型,
      

  6.   

    http://blog.csdn.net/lwphk/article/details/42553009  这里可以解决你的问题