格式类型不匹配。浏览器检查模式下会报400错误。
将datatab中
"fnServerParams": function (aoData) { //添加额外参数 var pnr = $("#pnr").val(); var officeno = $("#officeno").val(); var xetime = $("#xetime").val(); var createtime = $("#createtime").val(); aoData.push({"name": "pnr", "value": pnr}); aoData.push({"name": "officeno", "value": officeno}); aoData.push({"name": "xetime", "value": xetime}); aoData.push({"name": "createtime", "value": createtime}); } 前台String,后台接收date类型。 xetime和createtime为日期格式。@DateTimeFormat(pattern = "yyyy-MM-dd") // @JsonSerialize(using = CustomDateSerializer.class) public Date getSeasondepartdatebegin() { return seasondepartdatebegin; }