How can Spring Cloud and Eureka be configured to work together for service discovery?
- By adding the @EnableDiscoveryClient annotation to the Spring Boot application class
- By defining the service endpoints in the bootstrap.properties file
- By manually registering each service with Eureka
- By using a separate database to store service information
Spring Cloud and Eureka work together for service discovery by adding the @EnableDiscoveryClient annotation to the Spring Boot application class. This annotation enables the application to register itself with the Eureka server and discover other services.
Loading...
Related Quiz
- How can you profile a production Spring Boot application without affecting its performance significantly?
- The ordering of Auto Configurations can be controlled using the @_____ annotation or property.
- How can you create a custom Auto Configuration in Spring Boot?
- In OAuth2, what is the purpose of the Refresh Token?
- Which annotation is used in Spring Boot to conditionally enable or disable certain parts of auto-configuration based on the presence of specific properties?