@ClearShirojavascript
@ActionKey("/goOut")java
public void goOutHere() {url
PrintWriter pw = null;ip
try {get
pw = getResponse().getWriter();it
} catch (IOException e) {io
e.printStackTrace();shiro
}top
pw.write("<script type='text/javascript'>top.location.href='/login';</script>");auth
renderNull();
}
shiroPlugin.setLoginUrl("/goOut"); // 登錄url:未驗證成功跳轉
shiroPlugin.setSuccessUrl("/"); // 登錄成功url:驗證成功自動跳轉
shiroPlugin.setUnauthorizedUrl("/goOut"); // 受權url:未受權成功自動跳轉