In Spring Security, to apply method security, one needs to enable it using the _____ annotation on a configuration class.

  • @EnableGlobalMethodSecurity
  • @EnableMethodProtection
  • @MethodSecurity
  • @SecuredMethod
To enable method-level security in Spring Security, you need to use the @EnableGlobalMethodSecurity annotation on a configuration class. It's used to activate annotations like @Secured, @PreAuthorize, etc., for method-level security.
Add your answer
Loading...

Leave a comment

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