S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which annotation is used to secure methods in Spring Boot?

  • (A) @Secured
  • (B) @RolesAllowed
  • (C) @EnableSecurity
  • (D) @MethodSecurity
  • Correct Answer - Option(A)
  • Views: 13
  • Filed under category Springboot
  • Hashtags:

Explanation by: Shyam Dubey
@Secured is used to protect individual methods by defining allowed roles.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.