title: can i use <http:auto-config=true> and <UsernamePasswordAuthenticationFilter> at the same time in spring security
body: <p>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.</p>
  
  <p>How can I solve this problem?
  thanks</p>