[spring data jpa] When using spring data jpa, about the transaction processing of delete and save operations in one method of the service layer

Now there is such a situation, that is, a method provided in the service is to delete all the qualified data first, and then insert all the new conditions into the database

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325241028&siteId=291194637