12-ssm中的description The request sent by the client was syntactically incorrect.

时间:2023-03-09 22:55:58
12-ssm中的description The request sent by the client was syntactically incorrect.

此问题一般是在前端的数据传回是封装成对象失败的情况:

1.对象名不一致;

2.对象的数据类型不一致;

特别注意日期类型的:

如果前端是date数据类型的话:

传入的日期有问题
在pojo类中限定
@DateTimeFormat(pattern = "yyyy-MM-dd")
private Date inventoryTime;