The reason for the bug is that the query data is where id = XXX. This is because @ModelAttribute does not get the id, which is null.
The book is fine, that's it, I don't know why, just change it to @RequestBody to accept the object. Maybe the front-end pass value has changed! !
(1)
(2)