I have a Spring MVC app that does not protect updates of user data with transactions.
It assumes that only a single user is accessing the account data for that account at any one time.
However, if two users were to log in using the same authentication credentials, it is theoretically possible, although unlikely, for two database updates on the same user data to overlap and conflict.
Is there a simple way to protect against this in Spring Security?