For a service to register itself with Eureka, it must have the _____ annotation in its main application class.

  • @EnableDiscoveryClient
  • @EnableEurekaClient
  • @EurekaService
  • @RegisterWithEureka
For a service to register itself with Eureka, it must have the @EnableDiscoveryClient annotation in its main application class. This annotation tells Spring Boot to enable service discovery and registration with Eureka. It is essential for ensuring that your microservices can be discovered and accessed by other services in the architecture.
Add your answer
Loading...

Leave a comment

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