title: Rollback in multiple service operations in Spring, jdbctemplate
body: <p>I have a controller which calls three services A,B and C and these services calls their own DAO to perform insertion into the database.
  The problem is if for example something goes wrong with service C, then A and B still persists in the database. I want that if anything goes wrong with the any of the service then the previous database operations performed by the other services should be able to rollback. How do I achieve this?</p>
  <pre><code>@PostMapping('/data')
  public String insertData(@RequestBody String data){
     A.insert(data);
     B.insert(data);
     C.insert(data);
     return data;
  }
  </code></pre>