S

Shyam Dubey • 3.70K Points
Extraordinary

Q. How do you enable method-level security in Spring Boot?

  • (A) Add @EnableMethodSecurity
  • (B) Add @SecureMethod
  • (C) Use application.yml
  • (D) Set method.secure=true
  • Correct Answer - Option(A)
  • Views: 11
  • Filed under category Springboot
  • Hashtags:

Explanation by: Shyam Dubey
@EnableMethodSecurity is used to enable security annotations at the method level.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.