Home > Back-end > Mybatisplus within a transaction determine abnormal optimistic locking
Mybatisplus within a transaction determine abnormal optimistic locking
Time:12-04
You greatly, Mybatisplus optimistic locking plug-in principle: intercept SQL and add version related: update the set version + 1 where version=oldversion Affecting the rows can be judged by the optimistic locking abnormal whether, Now, within the transaction, even if the data in db version has been modified, the current update based on the data within the session has been read, affect the number of rows to 1, still within a transaction how to throw an optimistic locking exception?
CodePudding user response:
Bosses don't dive
CodePudding user response:
Didn't quite understand your problem, your transaction isolation level is what?