In the delete method of spring data jpa, all fields are null when updating, so when there are fields in the table that are not required to be empty, insert null will be reported to the fields that are not allowed to be empty.
At this time, only write the sql statement by himself, and his save automatically recognizes the update and insert