内の同じページに残りますが、これは動作しません:リダイレクトは、まだ私は私のホームページにリダイレクトしたいSpring MVCの
@RequestMapping(value = "logout", method = RequestMethod.GET)
public String logout(HttpSession session) {
this.setSessionAccount(session, null);
return this.getRedirect("/index");
}
私の現在のページがhost/u/center
です。いくつかの応答レコードがあります:
getRedirect( "")メソッドとなる関連コードを投稿するのはどうですか? –