spring security3.0.7,和3.1测试版中都是同样的问题~~ 问题如下: <global-method-security >
<protect-pointcut expression="execution(* test.Test.o1*(..))" access="hasRole('ROLE_X')"/>
</global-method-security> 没起作用,都能调用到test.Test.o1方法~ pre-post-annotations="enabled" 时
@PreAuthorize("hasRole('ROLE_X')")
也没作用 但下面这是OK的,运行都OK。。
<http >
<intercept-url pattern="/a.jsp" access="hasRole('ROLE_X')"/>
</http> 是我说明不够,,求教~~
或是谁有成功的demo给个,先感谢了~~
<protect-pointcut expression="execution(* test.Test.o1*(..))" access="hasRole('ROLE_X')"/>
</global-method-security> 没起作用,都能调用到test.Test.o1方法~ pre-post-annotations="enabled" 时
@PreAuthorize("hasRole('ROLE_X')")
也没作用 但下面这是OK的,运行都OK。。
<http >
<intercept-url pattern="/a.jsp" access="hasRole('ROLE_X')"/>
</http> 是我说明不够,,求教~~
或是谁有成功的demo给个,先感谢了~~
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货