1.使用重定向 @RequestMapping("/aa") public String loginOut() { return "redirect:/index"; } /index是Controller中的一个方法 相关文章: