@RequestMapping("/testRedirect") public String testRedirect(){ System.out.println("testRedirect"); return "redirect:/index.jsp"; }
原理:
找到ModelAndView 进入UrlBaseViewResolver类createView方法()
原文地址:https://www.cnblogs.com/eason-d/p/9248937.html
时间: 2024-10-09 06:38:20