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.
Add your answer
Loading...

Leave a comment

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