In this tutorial, we’ll create a eureka service discovery project and 2 applications which we will register with the eureka server.
We can create a new spring project from site: start.spring.io
Lets add the @EnableDiscoveryServer annotation to the application.
Lets specify the properties to not to register itself with Eureka and act just as a server:
Lets run the application and access application from web:
EUREKA Clients
We can create a new spring project from site: start.spring.io
Lets add the @EnableDiscoveryClient annotation to both the applications.
Lets specify the properties to register itself with Eureka and act just as clients:
Lets run the application and see if the clients have registered to eureka server :