2014-07-02 147 views
-1

@PreAuthorize在Spring Security 3中不起作用

这是我的代码捕捉。使用Spring Security发布@PreAutorize注释

@PreAuthorize("hasRole('Admin') or hasRole('Student')") 
public void doSomething(){} 

这是给我奇怪的错误,加入

<aop:config proxy-target-class="true"></aop:config> 

线在春季安全(见附件)enter image description here

+0

你能告诉类的整个代码? – geoand

+0

那不是我:) – geoand

+0

@geoand,我无法在这里补充完整的代码,但我相信,当我只添加一条线,服务器就开始给我的错误。如果我删除该行,它的工作正常。 –

回答

0

其他感兴趣的人..

我固定的问题.XML