${adminPath}/logout = logout
shiro 登出走 LogoutFilter 过滤器,登出默认重定向到redirecUrl这个地址(/)
public class LogoutFilter extends AdviceFilter { private static final Logger log = LoggerFactory.getLogger(LogoutFilter.class); /** * The default redirect URL to where the user will be redirected after logout. The value is { @code "/"}, Shiro's * representation of the web application's context root. */ public static final String DEFAULT_REDIRECT_URL = "/"; /** * The URL to where the user will be redirected after logout. */ private String redirectUrl = DEFAULT_REDIRECT_URL;
<!-- 自定义退出路径 --> <bean id="logout" class="org.apache.shiro.web.filter.authc.LogoutFilter"> <property name="redirectUrl