springmvc controller如何跳转到jsp、html?

1     @RequestMapping(value = "/exitRecords.do")
2     public String getExitRecords(String xh, HttpServletRequest request,
3             HttpServletResponse response) throws IOException
4     {
5         return "exitRecords";
6     }
View Code

 

1 @RequestMapping(value="/exit.do")
2     public String toExitPage(HttpServletRequest request,
3             HttpServletResponse response)
4     {
5         return "exit";
6     }
View Code

exit.html

exitRecords.jsp

posted @ 2016-03-07 17:38  LoveYaner  阅读(10497)  评论(1编辑  收藏  举报