这是原先的配置
<!-- 自定义权限认证 -->
<bean id="authRealm" class="club.thunderstorm.common.shiro.AuthRealm">
<!-- 自定义密码加密算法 -->
<property name="credentialsMatcher" ref="passwordMatcher"/>
</bean>
之后要加上下面这些
<!-- 自定义权限认证 -->
<bean id="authRealm" class="club.thunderstorm.common.shiro.AuthRealm">
<!-- 自定义密码加密算法 -->
<property name="credentialsMatcher" ref="passwordMatcher"/>
<!--缓存开启-->
<property name="cachingEnabled" value="true" />
<!--身份认证-->
<property name="authenticationCachingEnabled" value="true" />
<property name="authenticationCacheName" value="authenticationCache" />
<!--权限认证-->
<property name="authorizationCachingEnabled" value="true" />
<property name="authorizationCacheName" value="authorizationCache" />
</bean>
关于shiro的配置可以看我这篇博客shiro + ssm的开发步骤