title: Prevent concurrent access of endpoint in Spring Boot
body: <p>I have created two API endpoints using Spring Boot.</p>
  <p>Ist endpoint: Does some get operation.</p>
  <p>IInd endpoint:Overwrites a Mongo DB Collection.</p>
  <p>My aim is to prevent concurrent access for multiple users for this second endpoint. And I don't want to block concurrent access to first endpoint.</p>
  <p>Both my endpoints are under same controller.</p>