1. internalResourceView
转发到另一个页面
@RequestMapping("/internal") public String internal(){ return "forward:/test/test1"; }
2 redirectView
视图重定向
@RequestMapping("/redirect") public String redirect(){ return "redirect:/test/test1"; }
3 view-controller
代替普通的view
<mvc:view-controller path="/" view-name="index"></mvc:view-controller
必须加视图驱动
<mvc:annotation-driven/>
标签:redirect,test1,String,springMVC,视图,internal,test From: https://www.cnblogs.com/cciscc/p/16667705.html