1.返回ModelAndView
ModelAndView md
md.addObject(“other”,other);//传值
md.setViewName(“other”)//跳转页面
return md;
2.返回Model (Spring boot)
Model md
md.addAttribute(“proCount”, proCount);//传值
return “other”//直接写跳转页面名称
3.返回String
session.setAttribute(“err”,“账号密码错误或账号不存在”);//传值
return “redirect:/pow/dangerInfo”;//返回指定路径 可以是jsp 也可以是controller下面的方法