title: Spring expression fails after upgrade to SpringBoot 2.2
body: <p>I had an application which was on SpringBoot 1.5.9.  I recently upgraded to SpringBoot 2.2.  I had a bunch of issues which I fixed, and now the app starts up without errors.</p>
  <p>However, I have a @PreAuthorize on my controller methods which seems to be failing:</p>
  <p><code>@PreAuthorize(&quot;not @appConfig.getSecEnabled() or hasRole('ROLE')&quot;) public void someMethod() {}</code></p>
  <p><code>java.lang.IllegalArgumentException: Failed to evaluate expression 'not @appConfig.getSecEnabled() or hasRole('ROLE')'</code></p>
  <p>What has changed in 2.2 that could cause this?</p>