我是从数据库里读取的权限数据,我也尝试过不用数据库,按如下方法配置:
<bean id="userManagerSecurity" class="org.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor">
<property name="authenticationManager"> <ref bean="authenticationManager"/> </property>
<property name="accessDecisionManager"> <ref bean="businessAccessDecisionManager"/> </property>
<property name="objectDefinitionSource">
<value>org.bh.dao.user.IUserDAO.getUser=ROLE_admin</value>
</property> </bean>
同样,调用getUser方法时,acegi也没有进行拦截!不知哪里配置出现了问题?望指点一二!
<bean id="userManagerSecurity" class="org.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor">
<property name="authenticationManager"> <ref bean="authenticationManager"/> </property>
<property name="accessDecisionManager"> <ref bean="businessAccessDecisionManager"/> </property>
<property name="objectDefinitionSource">
<value>org.bh.dao.user.IUserDAO.getUser=ROLE_admin</value>
</property> </bean>
同样,调用getUser方法时,acegi也没有进行拦截!不知哪里配置出现了问题?望指点一二!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货