-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>
线在春季安全(见附件)
你能告诉类的整个代码? – geoand
那不是我:) – geoand
@geoand,我无法在这里补充完整的代码,但我相信,当我只添加一条线,服务器就开始给我的错误。如果我删除该行,它的工作正常。 –