Announcement Announcement Module
Collapse
No announcement yet.
Role name from properties file Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Role name from properties file

    Hello,

    is possible in spring security defines something like this:
    @PreAuthorize("hasRole(role.admin)")
    public void someMethod() {
    ....
    }

    where role.admin string is loaded from properties file like this:
    ...
    role.admin=ROLE_ADMIN
    ....

    Thanks,
    Rody
Working...
X