Create Application in Spring Boot MicroService

Home / Create Application in Spring Boot MicroService

We know that in Monolithic application complete Code is at one place, in MicroService we divide this big monolithic application in small small microservices.

Suppose we create a separate application named EurekaClient-1 with some rest end points and host this application on Eureka Server so we don’t need to worry about details of this application.

To create this separate client application names EurekaClient-1 we have to follow below steps:

1- Add below dependency in your pom.xml file


2- Enable Eureka client using @EnableEurekaClient in your main class.

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

3- Give this application name, and a Port on which it will run, and path of the Eureka Server.

4- Create Controller Class and make some end points.

public class ClientController1 {

	public String client1() {
		return "I am client 1";


Run your application and see your eureka server you will see your application hosted there.

Note: Before running your application make sure your eureka server is running.

Now access below url for getting your end point response


Help Others, Please Share

About Author

Leave a Reply

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