我试图同时集成Oauth安全性和acl spring安全性。
而不是下面的oauth表达式处理程序
<sec:global-method-security pre-post-annotations="enabled" proxy-target- class="true">
<sec:expression-handler ref="oauthExpressionHandler" />
</sec:global-method-security>下面的配置使用了acl表达式处理程序
正如在30.html中所解释的。
我能够在table.But中创建acl条目,同时使用@PostFilter方法返回的对象不会使用acl权限进行过滤。
有人能帮忙吗?
发布于 2016-02-26 12:34:40
在我的配置中,我犯了两个错误,这使得@PostFilter不活跃。
2我的服务层中的问题是
我的服务类如下所示,并按以下方式应用注释
@Service("a")
@Transactional
Class A{
public List<Users> getUsers() {
getNames();
}
@PostFilter("hasPermission(filterObject,'edit')")
public List<Users> getNames() {
}注释将不被考虑,因为这两个方法都在同一个代理中可以引用。
以下网址
Spring AOP not working for method call inside another method
https://stackoverflow.com/questions/35628760
复制相似问题