title: how to use spring4 @RestController to return a jsp page?
body: <p>When I use spring3 @Controller like this:</p>
  
  <pre><code>@RequestMapping("/userCenter")
  
  @Controller
  public class LoginCtrl {
      @RequestMapping("/loginPage")
      public String login(HttpServletRequest request,HttpServletResponse response,Model model) throws Exception { 
          return "userCenter/loginPage";
      }
  }
  </code></pre>
  
  <p>It is ok, I get the the loginPage.jsp right content in browser.</p>
  
  <p>but when I change @Controller to @RestController</p>
  
  <p>the localhost:8080//userCenter/loginPage return a page with the string "userCenter/loginPage"</p>
  
  <p>So,how could I use @RestController to get jsp pages like @Controller?</p>