I am using Spring Security 2.5.4 with Spring 2.5.4 and the security layer works pretty well straight way. I now plan to add method level security to my application. For the same I added the following line to my application-security.xml
And then added the @Secured annotations to the methods of my controller class with the permissions such as,Code:<security:global-method-security secured-annotations="enabled" />
But the code doesn't seem to intercept the @Secured annotations. Am I missing something here?Code:public class MyController extends AbstractWizardFormController { @Secured( { "THIS_IS_A_ROLE_DESTINED_TO_FAIL" } ) public void addUser() { // some stuff } }
Thanks for all the help in advance.
~ Sandy


