To enable method-level security annotations like @Secured and @PreAuthorize, the _____ attribute needs to be enabled in the security configuration.
- enable-annotations
- method-level-security
- method-security
- secured-annotations
To enable method-level security annotations like @Secured and @PreAuthorize, you need to configure the method-security attribute in the Spring Security configuration. This attribute is set to true to enable these annotations.
Loading...
Related Quiz
- How can groups be used in Bean Validation to perform partial validation in Spring Boot?
- How does Spring Security handle password encoding by default?
- Imagine you are creating a configuration class in Spring Boot that should only be processed if a certain bean is present in the ApplicationContext. How would you accomplish this?
- Which annotation is used to disable full auto-configuration and instead apply only configuration relevant to JPA tests in Spring Boot?
- How does WebFlux differ from the traditional Spring MVC framework in handling HTTP requests?