To authorize access to method-level security in Spring Security, the _______ annotation can be used.

  • @Authorize
  • @PreAuthorize
  • @Secure
  • @Security
To authorize access to method-level security in Spring Security, the @PreAuthorize annotation can be used. This annotation allows you to specify expressions for controlling access to methods based on user roles or custom conditions. It's a powerful tool for fine-grained authorization control.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *