title: When to use ModelAndView vs Model in Spring?
body: <p>This might sound dumb to the <code>Spring</code> experts, but I have to ask:<br>
  How do you decide on when to use <code>ModelAndView</code> and when to use <code>Model</code>? </p>
  
  <p>After all I have researched the best answer I have found is <a href="https://stackoverflow.com/questions/7175509/which-is-better-return-modelandview-or-string-on-spring3-controller">this one</a>. It has mentioned that the <code>ModelAndView</code> is an old way and the <code>Model</code> with a <code>String</code> returned is a new way in <code>Spring</code>. </p>
  
  <p>My question is shall we deprecate the old <code>ModelAndView</code> now that we have <code>Model</code> in hand? Or is there any cases that you need to use <code>ModelAndView</code> for it?</p>
  
  <p>Also, does anyone know why the have to change <code>ModelAndView</code> to <code>Model</code> and <code>String</code> value as <code>View</code>, and what are the benefits? </p>