The @PreAuthorize annotation in Spring Security uses _____ expressions to define access controls.
- Java
- SQL
- SpEL (Spring Expression Language)
- YAML
The @PreAuthorize annotation in Spring Security uses SpEL (Spring Expression Language) expressions to define access controls. SpEL allows you to write expressive and dynamic access control expressions based on the current authentication context.
Loading...
Related Quiz
- You are creating a Spring Boot project intended to be deployed on a cloud platform. What considerations and configurations would you implement to ensure smooth deployment and execution on the cloud environment?
- You are tasked with creating a custom Auto Configuration that provides a set of beans only if a specific library is on the classpath. How would you approach this requirement?
- The _____ annotation in Spring Boot is used to test only the web layer by disabling full auto-configuration and applying only relevant web configurations.
- In Spring Boot, the _____ annotation can be used to specify the conditions that must be met for a component to be registered.
- How can you configure a custom method security expression handler in Spring Security?