title: call another service after sending the success response in spring boot?
body: <p>The first controller is sending the success response after that it will call another method after sending the response.</p>
  
  <p>I need to call m1()method after return the response</p>
  
  <pre class="lang-java prettyprint-override"><code>    @RequestMapping(value = {"/hello"}, method = POST, produces = { "application/json" })
          public Response getAllData(@RequestBody String request){
  
              return new ResponseEntity&lt;&gt;("Hello World");
          }
  
      public void m1(){
  
      }
  </code></pre>