转发和重定向 默认转发 重定向 redirect @Controller public class ModelTest { @RequestMapping("/m1/t1") public String test01(Model model){ model.addAttribute("msg","ModelTest"); //重定向 return "redirect:/index.jsp"; }