插入数据时id是自动添加的,故SQL语句中没有id,前端传数据时没传自增属性,导致报错:The server cannot or will not process the request due to
插入数据时id是自动添加的,故SQL语句中没有id,见:https://mp.****.net/postedit/103895623
故前端传数据时,我也没有传ID,使用对象user接收数据,总是报如下错误:
HTTP Status 400 – Bad Request
Type Status Report
Description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).
Apache Tomcat/9.0.0.M26
—————————————————————————————————————————————————
折腾了半天才发现,即使是自增字段用不着,前端也要下传。
md,浪费了好半天才解决问题,记录下来,长记性。