title: Using && in Spring MVC @PreAuthorize
body: <p>I need to use an &amp;&amp; operator in a spring @PreAuthorize annotation as follows:</p>
  
  <pre><code>@PreAuthorize("hasAuthority('AUTH_ADMIN') &amp;&amp; isEnabled(principal.department, #docCat)")
  @RequestMapping(value = "/samedept/patient/{pin}/results/{docCat}/{docResultType}/{docId}", method = RequestMethod.GET,
          headers = ContentTypeHeader.HEADER_APPLICATION_PDF)
  ModelAndView secureViewResultPdf(@PathVariable(value = "pin") long pin,
                             @PathVariable(value = "docCat") String docCat,
                             @PathVariable(value = "docResultType") String docResultType,
                             @PathVariable(value = "docId") String docId);
  </code></pre>
  
  <p>I tried this but I'm getting</p>
  
  <pre><code>java.lang.IllegalStateException: Cannot handle (38) '&amp;'
      at org.springframework.expression.spel.standard.Tokenizer.process(Tokenizer.java:193)
  </code></pre>
  
  <p>I've looked all over the web but can't find an example of an &amp;&amp; operator used this way. Is it possible?</p>