1. 程式人生 > >$.ajax json資料到server,報400錯誤的解決方案

$.ajax json資料到server,報400錯誤的解決方案


錯誤:The request sent by the client was syntactically incorrect ().

原因:可能是提交form表單與Action中期望接收到的不匹配

為bean類添加註解

@JsonIgnoreProperties(ignoreUnknown =true)
問題解決