Eureka Server Spring Boot MicroService

Home / Eureka Server Spring Boot MicroService

Eureka Server is used to monitor all the application. With the help of Eureka Server we don’t need to worry about information like which application running on which port and how many instances of application are running, all this are take cares by Eureka Server.So to Create a Eureka Server we have to follow below steps:

  1. Add required dependency in you pom.xml file
  2. Enable Your main class as a Eureka Server using @EnableEurekaServer annotation.
  3. Define applicationName and portNo in file.
  4. By Default Eureka act as a client but now we want this application to work as Eureka Server so we make Eureka registry as false in file.

1- Add the Eureka Server dependency in your pom.xml file.


2- Enable Eureka Server by using @EnableEurekaServer annotation in your main class.

public class EurekaServerApplication {
   public static void main(String[] args) {, args);

3- By Default Eureka Server application running as a client so if we have want to act this application as a server then we have to add below properties in file

In above file

server.port define the port on which Eureka Server running in our case it is running on 8761 port so to access your eureka server just hit below URL in your browser.


Help Others, Please Share

About Author

Leave a Reply

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