How to run virtual instances of spring boot in eclipse

What you will learn here about spring boot

  • How to run virtual instances of spring boot in eclipse

microservices

prerequisite:
1)Please Start Naming server Before starting the Find Book service. Please visit following link for knowing how to implement naming server in microservice

Eureka naming server in microservices

2)Please Start Book Exchange service Before starting the Find Book service. Please visit following link for Book exchange service

Microservice – Book Exchange Service using Spring Boot

How to run virtual instances of spring boot in eclipse

Please follow the following steps to know how to run virtual instances of spring boot in eclipse.
1)Please open your eclipse IDE

2)Now Please click on Run dropdown and click on Run Configurations which is shown below
Virtual instances of spring boot in eclipse

3)Now Please follow the following steps which is shown below

  1. First Click on Java Application
  2. Click on launch new configuration
  3. Enter name for virtual instance
  4. Browse spring boot application main class path

eclipse How to run virtual instances of spring boot

4)Now Please follow the following steps which is shown below

  1. First click on Arguments
  2. enter port for virtual instance in VM arguments
  3. Click on Apply
  4. Click on Run

How to run virtual instances of spring boot in eclipse
5)Please make sure you have started Eureka naming server before following above steps

6)Go to browser and visit URL localhost:8761 to check new created virtual instance which is shown below
virtual instance added on eureka server

You may also like...