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.
Loading...
Related Quiz
- Imagine you are resolving a dependency injection issue in a project. What approach and considerations would you take to resolve ambiguity in autowiring of beans and ensure that the correct bean is injected?
- What is the primary purpose of Auto Configuration in Spring Boot?
- For integration testing in Spring Boot, the _____ annotation is used to specify that only certain parts or layers of the application should be loaded.
- In Spring Boot, the _____ annotation is used to indicate that a method's return value should be stored in the cache.
- When dealing with relationships in Spring Data JPA, the _____ annotation can be used to handle cascading operations between entities.