In a Spring Cloud environment, to configure a service to discover its peers using Eureka, the property ____ must be defined in the application's properties or YAML file.

  • eureka.application.instance-id
  • eureka.client.register-with-eureka
  • eureka.client.service-url
  • eureka.service.discovery
In a Spring Cloud environment, to configure a service to discover its peers using Eureka, the property eureka.client.register-with-eureka must be defined in the application's properties or YAML file. This property determines whether the service should register itself with the Eureka server. Setting it to true allows the service to register, and it will be discoverable by other services through Eureka.
Add your answer
Loading...

Leave a comment

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