<http >
<intercept-url pattern="/a.jsp" access="hasRole( ROLE_X )"/>
</http>
in spring security3.0.7 or 3.1
it is Ok. only ROLE_X can see a.jsp page.
but:
<global-method-security >
<protect-pointcut expression="execution(* test.Test.o1*(..))" access="hasRole( ROLE_X )"/>
</global-method-security>
it is not working,eneryone can use the method test.Test.o1~~
when pre-post-annotations="enabled"
@PreAuthorize("hasRole( ROLE_X )")
it is also not working,eneryone can use the method test.Test.o1~~
i m so sad~~
any advise or used global-method-security demo , ths.