A

Arogya • 3.19K Points
Extraordinary

Q. Which annotation enables method-level security in Spring Security?

  • (A) @EnableMethodSecurity
  • (B) @EnableJpaRepositories
  • (C) @EnableScheduling
  • (D) @EnableCaching

Explanation by: Arogya
@EnableMethodSecurity activates annotations like @PreAuthorize and @PostAuthorize.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.