springmvc controller如何跳转到jsp、html?

时间:2016-03-07 18:36:22   收藏:0   阅读:885
技术分享
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

原文:http://www.cnblogs.com/LideAiYaner-1wn/p/5251304.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!