<!--1 配置securityManager -->
<bean id="securityManager"
class="org.apache.shiro.web.mgt.DefaultWebSecurityManager">
<property name="cacheManager" ref="cacheManager" />
<!--
Single realm app. If you have multiple realms, use the 'realms' property instead.
-->
<property name="authenticator" ref="authenticator" />
<property name="realms">
<list>
<ref bean="jdbcRealm" />
<ref bean="secondShiroRealm" />
</list>
</property>
</bean>
_012_Shiro_在SecurityManager中配置Realms
猜你喜欢
转载自blog.csdn.net/poiuyppp/article/details/86596912
今日推荐
周排行