In Spring Security, the _____ annotation is used to apply security constraints based on complex expressions.

  • @Authorize
  • @PreAuthorize
  • @Secure
  • @Secured
In Spring Security, the @PreAuthorize annotation is used to apply security constraints based on complex expressions. These expressions are defined using the Spring Expression Language (SpEL) and allow fine-grained control over method access.
Add your answer
Loading...

Leave a comment

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