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.
Loading...
Related Quiz
- For securing REST APIs in Spring Security, the use of _______ is recommended to represent the user's authorization information.
- In Spring Boot, the _____ annotation is used to enable OAuth2 Authorization Server capabilities.
- In what scenario would you prefer to use @Inject over @Autowired for dependency injection?
- The @Controller annotation in Spring Boot is typically used in conjunction with the _____ annotation to handle HTTP requests.
- repository extends the CrudRepository to provide additional methods to retrieve entities using the pagination and sorting abstraction in Spring Data JPA?