title: Spring MVC, calling another controller from Inside a controller
body: <p>I am working on an existing code that is using one controller to call a method on the 2nd controller. There are 2 implementations I have seen so far.</p>
  
  <p>1st Implementation</p>
  
  <pre><code>return new Controller().method(request, response);
  </code></pre>
  
  <p>2nd Implementation</p>
  
  <pre><code>@Autowired
  private Controller controller.
  
  return this.controller.method(request, response);
  </code></pre>
  
  <p>Which is the right implementation, what are the problems if any with either of them.</p>