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
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
3)Now Please follow the following steps which is shown below
- First Click on Java Application
- Click on launch new configuration
- Enter name for virtual instance
- Browse spring boot application main class path
4)Now Please follow the following steps which is shown below
- First click on Arguments
- enter port for virtual instance in VM arguments
- Click on Apply
- Click on Run
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