码迷,mamicode.com
首页 > 其他好文 > 详细

配置文件-shiro-context.xml

时间:2017-06-20 23:27:33      阅读:226      评论:0      收藏:0      [点我收藏+]

标签:ini   zed   processor   manage   shiro   iso   manager   man   stp   

<beans   >

<bean id="securityManager" class="org...DefaultWebSecurityManager">

           <property name="realm" ref="shiroRealm"/>
           <property name="cacheManager" ref="cacheManager"/>
</bean>
<bean id="shiroFilter" class="org..ShiroFilterFactoryBean">
          <property name="securityManager" ref="securityManager"/>
          <property name="loginUrl" ref="/web/auth/login"/>
          <property name="successUrl" ref="/"/>
         <property name="unauthorizedUrl" ref="/"/>
         <property name="filter">
               <map>
                        <entry key="authc" value-ref="formAuthFilter"/>
             </map>
        </property>
        <property name="filterChainDefinitions">
              <value>
                      /services/**=anno
                     /web/auth/**=anno
                     /web/css/**=anno
                    /web/js/**=anno
                   /web/**=authc
           </value>
      </property>
</bean>
<bean id="cacheManager" class="org..MemoryConstrainedCacheManager"/>
<bean id="shiroRealm" class="com.etruck.portal.auth.ShiroRealm"/>
<bean id="lifecycleBeanPostProcessor" class="org..LifecycleBeanPostProcessor"/>
<bean id="formAuthFilter" class="com.etruck.portal.auth.FormAuthFilter"/>
<bean class="org..DefaultAdvisorAutoProxyCreator" depends-on="lifecycleBeanPostProcessor"/>
<bean class="org..AuthorizationAttributeSourceAdvisor">
        <property name="securityManager" ref="securityManager"/>
</bean>
</beans>

配置文件-shiro-context.xml

标签:ini   zed   processor   manage   shiro   iso   manager   man   stp   

原文地址:http://www.cnblogs.com/shen199103/p/7056772.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!