Spring Boot — Eureka Client | Code Factory

Reference Link : Link

Donate : Link

In this tutorial, you are going to learn in detail about How to register the Spring Boot Micro service application into the Eureka Server. Before registering the application, please make sure Eureka Server is running on the port 8765 or first build the Eureka Server and run it. For further information on building the Eureka server, you can refer this Link.

We need to add the @EnableEurekaClient annotation in the main Spring Boot application class file. The @EnableEurekaClient annotation makes your Spring Boot application act as a Eureka client.

SpringBootEurekaClientApplication.java

pom.xml

application.properties

Hit the URL http://localhost:8080/

Hit the URL http://localhost:8765/