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/

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store