In a Spring Boot application, the _____ annotation can be used to enable OAuth2 Authorization Server features.
- @EnableOAuth2
- @EnableOAuth2AuthorizationServer
- @EnableOAuth2Client
- @EnableSecurity
In a Spring Boot application, the @EnableOAuth2AuthorizationServer annotation is used to enable OAuth2 Authorization Server features. This annotation is crucial when you want your Spring Boot application to act as an OAuth2 Authorization Server. It allows you to configure and provide OAuth2 tokens to clients securely.
Loading...
Related Quiz
- Which annotation is used to test only the web layer in a Spring Boot application?
- How can you customize the response message sent to the client when a validation error occurs?
- In a Spring application with multiple security configurations, how would you ensure that the security annotations on service methods are evaluated in the correct order to enforce the intended security constraints?
- Which annotation in Spring is used to automate the wiring of bean dependencies?
- Which feature of Spring Boot simplifies the inclusion of external libraries or modules?