Which of the following can be used to enable method security annotations in a Spring Security configuration class?
- @EnableMethodAnnotations
- @EnableMethodSecurity
- @EnableSecuredMethods
- @EnableSecurityMethods
To enable method security annotations in a Spring Security configuration class, you should use the @EnableMethodSecurity annotation. This annotation allows you to configure method-level security in your application.
Loading...
Related Quiz
- In Spring Boot, the _____ annotation can be used to specify the conditions or actions that should be executed before testing each method.
- In Spring Boot, the _____ annotation is used to conditionally enable a configuration based on the presence of a specific property.
- You notice that a Spring Boot application is not evicting cache entries as expected, leading to outdated data being served. How would you diagnose and resolve this issue?
- How can you alter the Bean Lifecycle methods in Spring?
- In Spring Security, which annotation is specifically used to enforce security constraints on methods at a fine-grained level?