title: Spring security. Annotation secured doesn't work
body: <p>I have some problem. I use spring security for my application, and when i marked method annotation @Secured("ROLE_ADMIN"),it does not work.</p>
  
  <pre><code>@Secured("ROLE_ADMIN")
  @RequestMapping(value = "/greeting",produces = "application/json")
  public @ResponseBody List&lt;UserEntity&gt; greeting() {
      return userService.getAllCurrentUsers();
  }
  </code></pre>
  
  <p>This security-config.xml</p>
  
  <pre><code>&lt;global-method-security secured-annotations="enabled" pre-post-annotations="enabled"/&gt;
  
  &lt;http pattern="/resources/**" security="none"/&gt;
  &lt;http pattern="/loginSecurity" security="none"/&gt;
  &lt;http pattern="/favicon.ico" security="none" /&gt;
  &lt;http use-expressions="true"&gt;
      &lt;intercept-url pattern="/**" access="hasRole('ROLE_USER') or hasRole('ROLE_ADMIN')"/&gt;
      &lt;form-login login-page="/loginSecurity" default-target-url="/workspace"/&gt;
  &lt;/http&gt;
  
  &lt;authentication-manager&gt;
      &lt;authentication-provider&gt;
          &lt;password-encoder hash="bcrypt" /&gt;
          &lt;jdbc-user-service data-source-ref="dataSource"
                             authorities-by-username-query="SELECT userentity.username , roleentity.role_name from userentity
                                                      JOIN userentity_roleentity ON userentity.userid = userentity_roleentity.userlist_userid
                                                      JOIN roleentity ON userentity_roleentity.rolelist_role_name = roleentity.role_name
                                                      WHERE userentity.username = ?"
                             users-by-username-query="SELECT username,pwd,enable FROM userentity where username = ?"/&gt;
      &lt;/authentication-provider&gt;
  &lt;/authentication-manager&gt;
  </code></pre>
  
  <p>The authentication works. Roles in the database are correct.
  This code also works.</p>
  
  <pre><code>sec:authorize access="hasRole('ROLE_ADMIN')"&gt;
  &lt;button onclick="loadHeadRef('workspace','settings')"&gt;
    &lt;img src='&lt;spring:url value="/resources/image/settings.png"/&gt;' alt=""&gt;Settings&lt;/button&gt;
  &lt;/sec:authorize&gt;
  </code></pre>