1.使用重定向

@RequestMapping("/aa")
public String loginOut() {

return "redirect:/index";
}

 

/index是Controller中的一个方法

相关文章:

  • 2022-02-22
  • 2021-05-16
  • 2021-09-03
  • 2022-12-23
  • 2022-01-09
  • 2022-12-23
  • 2022-12-23
  • 2021-12-12
猜你喜欢
  • 2021-08-10
  • 2022-12-23
  • 2022-03-07
  • 2022-01-21
相关资源
相似解决方案