springboot从一个Controller中的方法跳转到另一个Controller中的方法

1.使用重定向

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

return "redirect:/index";
}

 

/index是Controller中的一个方法

posted @ 2019-07-29 11:28  Ella88  阅读(16152)  评论(0编辑  收藏  举报