title: Springboot Security hasRole not working
body: <p>I’m unable to use <code>hasRole</code> method in <code>@PreAuthorize</code> annotation. Also <code>request.isUserInRole(“ADMIN”)</code> gives <code>false</code>. What am I missing?
  Although <code>.hasAuthority(“ADMIN”)</code> works fine.</p>
  
  <p>I am assigning authorities to the users from a database.</p>