Anyone know can I use and at the same time in spring security.xml? currently , I am using UsernamePasswordAuthenticationFilter under tag in xml. But when I set the auto-config to 'true' and put @Secured("ROLE_ADMIN") in controller class, I am getting exception like expecting contructor or args with no method.
How can I solve this problem? thanks