Shiro

一步一步教你用shiro——6总结和心得

2018-04-30  本文已影响114人  江江的大猪
    <!--不启用shiro注解控制controller接口授权,注解都是抛异常,没法制定跳转页面,不好用,还是用shiro过滤器指定权限好用-->
    <bean id="lifecycleBeanPostProcessor" class="org.apache.shiro.spring.LifecycleBeanPostProcessor"/>
    <bean class="org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator" depends-on="lifecycleBeanPostProcessor"/>
    <bean class="org.apache.shiro.spring.security.interceptor.AuthorizationAttributeSourceAdvisor">
        <property name="securityManager" ref="securityManager"/>
    </bean>

上一篇下一篇

猜你喜欢

热点阅读