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.
Loading...
Related Quiz
- Which of the following is not a benefit of connection pooling in Spring Boot applications?
- Which annotation is used in Spring Security to secure methods based on role-based conditions?
- What is the significance of the client-side load balancer, Ribbon, in a Spring Cloud environment?
- How can you perform Unit Testing in a Spring Boot application to ensure that the Security Configurations are working as expected?
- You are developing a Spring Boot application where a bean is required to perform a task immediately after the ApplicationContext has been started. How would you implement this?