怎样进行spring acegi URL权限配置
意思就是只有具有相应权限的用户才能打开相应的url, 这个应该怎么配置,哪位能给个例子?
下面的代码能不能做到访问/writeAction.do的时候要求具有ROLE_WRITER?能不能给分析一下
[Quote=]
com.xxx.WriteAction.execute=ROLE_WRITER
[/Quote]
下面的代码能不能做到访问/writeAction.do的时候要求具有ROLE_WRITER?能不能给分析一下
[Quote=]
com.xxx.WriteAction.execute=ROLE_WRITER
[/Quote]
<bean id="methodDefinitionSourceAdvisor"
class="org.acegisecurity.intercept.method.aopalliance.MethodDefinitionSourceAdvisor">
<constructor-arg>
<bean
class="org.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor">
<property name="authenticationManager">
<ref bean="authenticationManager" />
</property>
<property name="accessDecisionManager">
<ref bean="methodAccessDecisionManager" />
</property>
<property name="objectDefinitionSource">
<value> com.xxx.WriteAction.execute=ROLE_WRITER
</value>
</property>
</bean>
</constructor-arg>
</bean>
...全文
相关推荐
Acegi入门资料
Acegi的设计原则之一就是与Spring框架紧密结合,充分利用Spring的依赖注入(DI)特性来实现更为简洁高效的配置。
权限Acegi的使用
**集成Acegi**:将Acegi库添加到项目的类路径中,并在Spring配置文件中声明Acegi的安全配置。2. **配置安全上下文**:定义安全上下文,指定认证和授权的策略。
实战Acegi:使用Acegi作为基于Spring框架的WEB应
Acegi Security或Spring Security都提供了相应的防护机制,开发者需要根据具体需求进行配置。
spring acegi 详细文档
如果用户没有足够的权限,它将阻止请求的进一步处理。在Spring Acegi中,安全配置通常通过XML配置文件完成,但也可以使用注解进行简化。
Spring Acegi
在本文中,我们将深入探讨 Spring Acegi 的核心概念、功能以及如何在实际项目中进行集成和配置。### 一、Spring Acegi 的核心概念1.


Web 开发
