in controller
@RequestMapping(value = "/testCalendar")
public String testCalendar(Calendar time){
    System.out.println(time == null);
    return "request ok" ;
}
and open in browser this url :127.0.0.1:8090/test/testCalendar
it got follwer error msg
springframework.beans.BeanInstantiationException: Failed to instantiate [java.util.Calendar]: Is it an abstract class?; nested exception is java.lang.InstantiationException] with root cause
java.lang.InstantiationException: null
atsun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:48)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
if i want got calendar with null,how can i do?
i try this
    @InitBinder
    public void initBinder(WebDataBinder binder) {
     binder.registerCustomEditor(Calendar.class, new CalendarEditor());
     binder.registerCustomEditor(Date.class, new DateEditor());
    }
but not still not working,please help me.
 
    