首页 > 解决方案 > Shiro's clearCachedAuthenticationInfo is null

问题描述

When shiro executes clearCachedAuthenticationInfo, the following problems occur:

protected void clearCachedAuthenticationInfo(PrincipalCollection principals) {
    if (!CollectionUtils.isEmpty(principals)) {
        // return null
        Cache<Object, AuthenticationInfo> cache = this.getAvailableAuthenticationCache(); 
        if (cache != null) {
            Object key = this.getAuthenticationCacheKey(principals);
            cache.remove(key);
        }
    }

}

click me to see the picture

Caused the session can not be cleared, seeking solutions

标签: javaspring-mvcspring-bootredisshiro

解决方案


推荐阅读