title: Spring Security hasIpAddress issue
body: <p>I have a method in a controller using  the below configuration:</p>
  
  <pre><code>@RequestMapping(value = "/encore/{userName}/{token}", method = RequestMethod.GET)
  @ResponseBody
  @PreAuthorize("hasIpAddress('192.168.1.2/24')")
  public EncoreAccount validateUserRequest(HttpServletRequest request,
      @PathVariable(value = "userName") String userName,
      @PathVariable(value = "token") String token) {
  }
  </code></pre>
  
  <p>and I have this one in webmvc-config.xml </p>
  
  <pre><code>&lt;security:global-method-security pre-post-annotations="enabled" /&gt;
  </code></pre>
  
  <p>But when I run it, I get the below exception:</p>
  
  <pre><code>Caused by: org.springframework.expression.spel.SpelEvaluationException: EL1004E:(pos 0): Method call: Method hasIpAddress(java.lang.String) cannot be found on org.springframework.security.access.expression.method.MethodSecurityExpressionRoot type
  </code></pre>
  
  <p>I know that the hasIpAddress() is in org.springframework.security.web.access.expression.WebSecurityExpressionRoot.</p>
  
  <p>Do you know why it doesn't look up the method in WebSecurityExpressionRoot?</p>
  
  <p>Many thanks,</p>