The @Secured annotation in Spring Security is used to secure _____.

  • controllers
  • endpoints
  • methods
  • resources
The @Secured annotation in Spring Security is used to secure methods within a class. It allows you to specify roles or authorities required to access those methods. This is often used for method-level access control.
Add your answer
Loading...

Leave a comment

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