@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:未受权成功自动跳转