今天在做ajax添加功能时,在前台传给后台数据时一直出现时间类型的转换错误,后来查了资料用了 @InitBinder注解
@InitBinder
public void initBinder(WebDataBinder binder) {
//webDataBinder是用于表单到方法的数据绑定的!
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
dateFormat.setLenient<